mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf: use bool type for the join member in the config structure
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ee29d2a0b6
commit
05a6effd8d
1 changed files with 4 additions and 3 deletions
|
|
@ -416,6 +416,7 @@ beginning:</P>
|
|||
|
||||
#include "local.h"
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <limits.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
|
|
@ -443,7 +444,7 @@ struct _snd_config {
|
|||
const void *ptr;
|
||||
struct {
|
||||
struct list_head fields;
|
||||
int join;
|
||||
bool join;
|
||||
} compound;
|
||||
} u;
|
||||
struct list_head list;
|
||||
|
|
@ -1393,7 +1394,7 @@ static int parse_def(snd_config_t *parent, input_t *input, int skip, int overrid
|
|||
SNDERR("%s is not a compound", id);
|
||||
return -EINVAL;
|
||||
}
|
||||
n->u.compound.join = 1;
|
||||
n->u.compound.join = true;
|
||||
parent = n;
|
||||
free(id);
|
||||
continue;
|
||||
|
|
@ -1408,7 +1409,7 @@ static int parse_def(snd_config_t *parent, input_t *input, int skip, int overrid
|
|||
err = _snd_config_make_add(&n, &id, SND_CONFIG_TYPE_COMPOUND, parent);
|
||||
if (err < 0)
|
||||
goto __end;
|
||||
n->u.compound.join = 1;
|
||||
n->u.compound.join = true;
|
||||
parent = n;
|
||||
}
|
||||
if (c == '=') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue