summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 21:13:35 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 21:13:35 +0200
commit20e7a577359fc015f2f7746b8f5206d821561d8a (patch)
treebdd5d66688b918d40ce536135af102df77cca6cf
parent8f7b1623846d644a144d68168ec3529ccc83df51 (diff)
Missed one in config
-rw-r--r--config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.c b/config.c
index c2741db..c49a7e9 100644
--- a/config.c
+++ b/config.c
@@ -376,8 +376,7 @@ config_parse_header(struct cfg *cfg, const char *filename, const char *title,
sprintf(titlehdr, "[%s]", title);
if (strcmp(line, titlehdr)) {
- printf("%s: incorrect header in configuration file\n",
- filename);
+ error("%s: incorrect header in configuration file\n", filename);
return false;
}
}