Fix pa_parse_boolean() return value checking.

pa_parse_boolean() return value shouldn't be stored in
pa_bool_t, because 1 and -1 need to be distinguished.
This commit is contained in:
Tanu Kaskinen 2012-03-29 15:24:02 +03:00 committed by Tanu Kaskinen
parent 188d037150
commit 19c058dd08
3 changed files with 43 additions and 16 deletions

View file

@ -1565,7 +1565,7 @@ static int pa_cli_command_log_level(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_bool_t *fail) {
const char *m;
pa_bool_t b;
int b;
pa_core_assert_ref(c);
pa_assert(t);
@ -1589,7 +1589,7 @@ static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
static int pa_cli_command_log_time(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_bool_t *fail) {
const char *m;
pa_bool_t b;
int b;
pa_core_assert_ref(c);
pa_assert(t);