[pulseaudio-commits] r2007 - /trunk/src/pulsecore/conf-parser.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Oct 31 17:31:59 PDT 2007


Author: lennart
Date: Thu Nov  1 01:31:59 2007
New Revision: 2007

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2007&root=pulseaudio&view=rev
Log:
make the bool config parser actually parse bools

Modified:
    trunk/src/pulsecore/conf-parser.c

Modified: trunk/src/pulsecore/conf-parser.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/conf-parser.c?rev=2007&root=pulseaudio&r1=2006&r2=2007&view=diff
==============================================================================
--- trunk/src/pulsecore/conf-parser.c (original)
+++ trunk/src/pulsecore/conf-parser.c Thu Nov  1 01:31:59 2007
@@ -169,7 +169,8 @@
 }
 
 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 @@
         return -1;
     }
 
-    *b = k;
+    *b = !!k;
 
     return 0;
 }




More information about the pulseaudio-commits mailing list