]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove unused arguments from options_validate().
authorNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 17:56:07 +0000 (13:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 17:56:11 +0000 (13:56 -0400)
This change breaks compilation; a subsequent commit will fix it with
a coccinelle patch.

src/app/config/config.c
src/app/config/config.h

index be243a0d8cbcd89eeb208ca265907e84276e277a..40340af79dae3c165fb17804a3c3ba1837d92844 100644 (file)
@@ -3431,15 +3431,12 @@ options_validate_single_onion(or_options_t *options, char **msg)
  */
 STATIC int
 options_validate(or_options_t *old_options, or_options_t *options,
-                 or_options_t *default_options_unused, int from_setconf_unused,
                  char **msg)
 {
   config_line_t *cl;
   const char *uname = get_uname();
   int n_ports=0;
   int world_writable_control_socket=0;
-  (void)from_setconf_unused; /* 29211 TODO: Remove this from the API. */
-  (void)default_options_unused; /* 29211 TODO: Remove this from the API. */
 
   tor_assert(msg);
   *msg = NULL;
index 0c61fc7c0f5332be33e7e5fe5cda0f17d18f5435..32ddc67652d173cb3f6042be1b56f2a1649d3a1b 100644 (file)
@@ -279,8 +279,7 @@ STATIC int options_validate_single_onion(or_options_t *options,
                                          char **msg);
 STATIC int options_validate(or_options_t *old_options,
                             or_options_t *options,
-                            or_options_t *default_options,
-                            int from_setconf, char **msg);
+                            char **msg);
 STATIC int parse_transport_line(const or_options_t *options,
                                 const char *line, int validate_only,
                                 int server);