diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-25 23:30:39 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-25 23:30:39 +0200 |
commit | b7761af34dc4ed3f1bdf874eb85d743b931b0af6 (patch) | |
tree | 20d65d244ec8655c0fa0e7457accd9ef6bac9b4f /conf/conf.c | |
parent | c72b660b7423b0fb687794b722884cd6e5e6c562 (diff) |
Conf: Replace keyword and symbol hash table with generic hash table.
The old hash table had fixed size, which makes it slow for config files
with large number of symbols and symbol lookups. The new one is growing
according to needs.
Diffstat (limited to 'conf/conf.c')
-rw-r--r-- | conf/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/conf.c b/conf/conf.c index 0a4e3f8c..7f4eb7e8 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -163,7 +163,7 @@ int cli_parse(struct config *c) { int done = 0; - c->sym_fallback = config->sym_hash; + c->fallback = config; new_config = c; cfg_mem = c->mem; if (setjmp(conf_jmpbuf)) @@ -174,7 +174,7 @@ cli_parse(struct config *c) done = 1; cleanup: - c->sym_fallback = NULL; + c->fallback = NULL; new_config = NULL; cfg_mem = NULL; return done; |