diff options
Diffstat (limited to 'src/pulsecore/conf-parser.c')
-rw-r--r-- | src/pulsecore/conf-parser.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/pulsecore/conf-parser.c b/src/pulsecore/conf-parser.c index ee43b05a..4aec45d7 100644 --- a/src/pulsecore/conf-parser.c +++ b/src/pulsecore/conf-parser.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of PulseAudio. @@ -110,7 +108,7 @@ int pa_config_parse(const char *filename, FILE *f, const pa_config_item *t, void int r = -1; unsigned line = 0; int do_close = !f; - + pa_assert(filename); pa_assert(t); @@ -153,7 +151,7 @@ finish: int pa_config_parse_int(const char *filename, unsigned line, const char *lvalue, const char *rvalue, void *data, PA_GCC_UNUSED void *userdata) { int *i = data; int32_t k; - + pa_assert(filename); pa_assert(lvalue); pa_assert(rvalue); @@ -169,7 +167,8 @@ int pa_config_parse_int(const char *filename, unsigned line, const char *lvalue, } int pa_config_parse_bool(const char *filename, unsigned line, const char *lvalue, const char *rvalue, void *data, PA_GCC_UNUSED void *userdata) { - int *b = data, k; + int k; + pa_bool_t *b = data; pa_assert(filename); pa_assert(lvalue); @@ -181,7 +180,7 @@ int pa_config_parse_bool(const char *filename, unsigned line, const char *lvalue return -1; } - *b = k; + *b = !!k; return 0; } |