return -1;
}
- state->in_proplist = TRUE;
+ state->in_proplist = true;
} else
- state->in_proplist = FALSE;
+ state->in_proplist = false;
return 0;
}
/* Go through the file and parse each line */
int pa_config_parse(const char *filename, FILE *f, const pa_config_item *t, pa_proplist *proplist, void *userdata) {
int r = -1;
- pa_bool_t do_close = !f;
+ bool do_close = !f;
pa_config_parser_state state;
pa_assert(filename);
while (!feof(f)) {
if (!fgets(state.buf, sizeof(state.buf), f)) {
+ if (feof(f))
+ break;
+
pa_log_warn("Failed to read configuration file '%s': %s", filename, pa_cstrerror(errno));
goto finish;
}
int pa_config_parse_bool(pa_config_parser_state *state) {
int k;
- pa_bool_t *b;
+ bool *b;
pa_assert(state);
int pa_config_parse_not_bool(pa_config_parser_state *state) {
int k;
- pa_bool_t *b;
+ bool *b;
pa_assert(state);