projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cecd8d4
)
make the bool config parser actually parse bools
author
Lennart Poettering
<lennart@poettering.net>
Thu, 1 Nov 2007 00:31:59 +0000
(
00:31
+0000)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 1 Nov 2007 00:31:59 +0000
(
00:31
+0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2007
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/conf-parser.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/conf-parser.c
b/src/pulsecore/conf-parser.c
index
0e0ba95
..
12ea49c
100644
(file)
--- a/
src/pulsecore/conf-parser.c
+++ b/
src/pulsecore/conf-parser.c
@@
-169,7
+169,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
+182,7
@@
int pa_config_parse_bool(const char *filename, unsigned line, const char *lvalue
return -1;
}
- *b = k;
+ *b =
!!
k;
return 0;
}