ConfigFile: add enum ConfigOption

Look up top-level config options by enum (= integer), not by name
string.
This commit is contained in:
Max Kellermann
2013-01-30 17:52:51 +01:00
parent daa4647712
commit 595b6a4f6c
16 changed files with 278 additions and 197 deletions

View File

@@ -261,8 +261,7 @@ log_init(bool verbose, bool use_stdout, GError **error_r)
return true;
#else
g_set_error(error_r, log_quark(), 0,
"config parameter \"%s\" not found",
CONF_LOG_FILE);
"config parameter 'log_file' not found");
return false;
#endif
#ifdef HAVE_SYSLOG