mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Fixed C++ warnings
This commit is contained in:
parent
3b1b429b88
commit
2829304154
2 changed files with 3 additions and 2 deletions
|
|
@ -25,5 +25,6 @@
|
||||||
#include <linux/asound.h>
|
#include <linux/asound.h>
|
||||||
#include <linux/asequencer.h>
|
#include <linux/asequencer.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ static inline size_t bitset_size(int nbits)
|
||||||
|
|
||||||
static inline bitset_t *bitset_alloc(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)
|
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);
|
bitset_t *end = dst + bitset_size(nbits);
|
||||||
while (dst < end)
|
while (dst < end)
|
||||||
*dst++ = -1;
|
*dst++ = ~(bitset_t)0;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct snd_pcm snd_pcm_t;
|
typedef struct snd_pcm snd_pcm_t;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue