diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-01-15 16:57:00 +0000 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-01-15 16:57:03 +0000 |
commit | 5dd514af93675602cdece2b7b2112989b87d5d51 (patch) | |
tree | 3f175638fa5c62364627df97aa8a1035c0fa8154 /src/conf.h | |
parent | 27d96df99900c5a62ab0fdf2a37565e78f256d6a (diff) |
conf: fix loading of default values
previously, default values were stored once into a static struct,
then on each reload item by item copied manually into a "new"
config struct.
this has proven to be errorprone, as additions in one of the 2
locations were not propagated to the second one, apart from
being simply a lot of gratuitous code.
we now simply load the default values directly into the config
struct to be used on each reload.
closes #283
Diffstat (limited to 'src/conf.h')
-rw-r--r-- | src/conf.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -112,10 +112,7 @@ struct config_s { vector_t add_headers; }; -void initialize_config_defaults (struct config_s *conf); - -extern int reload_config_file (const char *config_fname, struct config_s *conf, - struct config_s *defaults); +extern int reload_config_file (const char *config_fname, struct config_s *conf); int config_compile_regex (void); |