From: Jaroslav Kysela
Date: Fri, 8 May 2020 09:23:34 +0000 (+0200)
Subject: conf: use bool type for the join member in the config structure
X-Git-Tag: v1.2.3~65
X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=05a6effd8d0ea317bc419adc32fa46320cf428c9;p=alsa-lib.git
conf: use bool type for the join member in the config structure
Signed-off-by: Jaroslav Kysela
---
diff --git a/src/conf.c b/src/conf.c
index 50d04034..46bc1fb8 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -416,6 +416,7 @@ beginning:
#include "local.h"
#include
+#include
#include
#include
#include
@@ -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 == '=') {