]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
control: Remove an unused function return value
authorteor <teor@torproject.org>
Fri, 29 Nov 2019 00:54:42 +0000 (10:54 +1000)
committerteor <teor@torproject.org>
Fri, 29 Nov 2019 00:54:42 +0000 (10:54 +1000)
Cleanup after 31531.

src/feature/control/control_events.c
src/feature/control/control_events.h

index fb3410b89818faf8ebeb9c452584422f91fe1d40..82349bc6a2844536aa87b1423945c58d254baf99 100644 (file)
@@ -1774,13 +1774,13 @@ control_event_guard(const char *nickname, const char *digest,
  * by SETCONF requests and RELOAD/SIGHUP signals. The <b>changes</b> are
  * a smartlist_t containing (key, value, ...) pairs in sequence.
  * <b>changes</b> can be NULL. */
-int
+void
 control_event_conf_changed(const config_line_t *changes)
 {
   char *result;
   smartlist_t *lines;
   if (!EVENT_IS_INTERESTING(EVENT_CONF_CHANGED) || !changes) {
-    return 0;
+    return;
   }
   lines = smartlist_new();
   for (const config_line_t *line = changes; line; line = line->next) {
@@ -1796,7 +1796,6 @@ control_event_conf_changed(const config_line_t *changes)
   tor_free(result);
   SMARTLIST_FOREACH(lines, char *, cp, tor_free(cp));
   smartlist_free(lines);
-  return 0;
 }
 
 /** We just generated a new summary of which countries we've seen clients
index 833727a49f715da5b19459ff2291f7446d33f6da..edb0e90cd9964278087b91248612d14593cf3f4e 100644 (file)
@@ -158,7 +158,7 @@ int control_event_server_error(const char *format, ...)
 
 int control_event_guard(const char *nickname, const char *digest,
                         const char *status);
-int control_event_conf_changed(const struct config_line_t *changes);
+void control_event_conf_changed(const struct config_line_t *changes);
 int control_event_buildtimeout_set(buildtimeout_set_event_t type,
                                    const char *args);
 int control_event_signal(uintptr_t signal);