From: Abramo Bagnara Date: Thu, 11 May 2000 14:12:34 +0000 (+0000) Subject: Fixed C++ warnings X-Git-Tag: v1.0.3~1270 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=28293041546b587c22c878bcb04326454ebebbe4;p=alsa-lib.git Fixed C++ warnings --- diff --git a/include/header.h b/include/header.h index 0d04fc1d..52e2c9f0 100644 --- a/include/header.h +++ b/include/header.h @@ -25,5 +25,6 @@ #include #include #include +#include #include diff --git a/include/pcm.h b/include/pcm.h index 53d84ee6..57d23209 100644 --- a/include/pcm.h +++ b/include/pcm.h @@ -25,7 +25,7 @@ static inline size_t bitset_size(int nbits) static inline bitset_t *bitset_alloc(int nbits) { - return calloc(bitset_size(nbits), sizeof(bitset_t)); + return (bitset_t*) calloc(bitset_size(nbits), sizeof(bitset_t)); } static inline void bitset_set(bitset_t *bitmap, unsigned int pos) @@ -76,7 +76,7 @@ static inline void bitset_one(bitset_t *dst, unsigned int nbits) { bitset_t *end = dst + bitset_size(nbits); while (dst < end) - *dst++ = -1; + *dst++ = ~(bitset_t)0; } typedef struct snd_pcm snd_pcm_t;