diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-14 21:25:02 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-14 21:25:02 +0100 |
commit | 5f5d58b3da848daaea0e75b8807c24d42ba5ed67 (patch) | |
tree | dd9b33d7f94a8d82f8f86f2df4ab8bc8e75ea9fb | |
parent | f8c0d09cda5fb7576655a38e626e2d40b006d9a5 (diff) | |
download | ponymap-5f5d58b3da848daaea0e75b8807c24d42ba5ed67.tar.gz ponymap-5f5d58b3da848daaea0e75b8807c24d42ba5ed67.tar.xz ponymap-5f5d58b3da848daaea0e75b8807c24d42ba5ed67.zip |
Bump liberty
m--------- | liberty | 0 | ||||
-rw-r--r-- | ponymap.c | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/liberty b/liberty -Subproject 1a305a1c6b1608219334d7512fc09081c9066c9 +Subproject 3cc975bb2a80ebe5b451d268ae0562f1a0cbe12 @@ -41,7 +41,7 @@ #define DEFAULT_CONNECT_TIMEOUT 10 #define DEFAULT_SCAN_TIMEOUT 10 -static struct config_item g_config_table[] = +static struct simple_config_item g_config_table[] = { { "plugin_dir", PLUGIN_DIR, "Where to search for plugins" }, { NULL, NULL, NULL } @@ -363,7 +363,7 @@ app_context_init (struct app_context *self) str_map_init (&self->config); self->config.free = free; - load_config_defaults (&self->config, g_config_table); + simple_config_load_defaults (&self->config, g_config_table); self->connect_timeout = DEFAULT_CONNECT_TIMEOUT; self->scan_timeout = DEFAULT_SCAN_TIMEOUT; @@ -2040,7 +2040,7 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv) ctx->json_filename = optarg; break; case 'w': - call_write_default_config (optarg, g_config_table); + call_simple_config_write_default (optarg, g_config_table); exit (EXIT_SUCCESS); default: print_error ("wrong options"); @@ -2121,7 +2121,7 @@ main (int argc, char *argv[]) atexit (ERR_free_strings); struct error *e = NULL; - if (!read_config_file (&ctx.config, &e)) + if (!simple_config_update_from_file (&ctx.config, &e)) { print_error ("error loading configuration: %s", e->message); error_free (e); |