diff options
author | Neel Chauhan <neel@neelc.org> | 2019-11-26 20:57:33 -0500 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2019-11-26 22:12:23 -0500 |
commit | 99cf3f99c02752f8d6d89fe94272454c55285b66 (patch) | |
tree | ba8e84e5ebedc82a38f2a4249403b77992c4e510 /src/app/config/config.c | |
parent | fadd292bf05e6fedf61e25f43079920c9ea3c117 (diff) | |
download | tor-99cf3f99c02752f8d6d89fe94272454c55285b66.tar.gz tor-99cf3f99c02752f8d6d89fe94272454c55285b66.zip |
Make control_event_conf_changed() take a config_line_t
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 34f20c31c8..5ea8cec6a6 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -1001,15 +1001,9 @@ set_options(or_options_t *new_val, char **msg) /* Issues a CONF_CHANGED event to notify controller of the change. If Tor is * just starting up then the old_options will be undefined. */ if (old_options && old_options != global_options) { - smartlist_t *elements = smartlist_new(); config_line_t *changes = config_get_changes(get_options_mgr(), old_options, new_val); - for (config_line_t *line = changes; line; line = line->next) { - smartlist_add(elements, line->key); - smartlist_add(elements, line->value); - } - control_event_conf_changed(elements); - smartlist_free(elements); + control_event_conf_changed(changes); config_free_lines(changes); } |