]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move router_reset_reachability() into correct header, add a stub
authorNick Mathewson <nickm@torproject.org>
Thu, 20 Feb 2020 13:36:40 +0000 (08:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 20 Feb 2020 13:36:40 +0000 (08:36 -0500)
Without this, -O0 builds fail, which is a sign that LTO builds may
fail too.

src/feature/relay/router.h
src/feature/relay/selftest.h

index 782609d8abfd75fca877f90f240628f119768eb6..2e07df2e88f3565f553426b8ba15cd0bfd8978a2 100644 (file)
@@ -117,7 +117,6 @@ const char *routerinfo_err_to_string(int err);
 int routerinfo_err_is_transient(int err);
 
 void router_reset_warnings(void);
-void router_reset_reachability(void);
 void router_free_all(void);
 
 #ifdef ROUTER_PRIVATE
index c7987cf4a8762e0d04d7a4c2bbf03790d06a4346..f3dd698bb77f95e188057f0645122d9891cb524f 100644 (file)
@@ -21,6 +21,8 @@ void router_do_reachability_checks(int test_or, int test_dir);
 void router_orport_found_reachable(void);
 void router_dirport_found_reachable(void);
 void router_perform_bandwidth_test(int num_circs, time_t now);
+void router_reset_reachability(void);
+
 #else /* !defined(HAVE_MODULE_RELAY) */
 
 #define check_whether_orport_reachable(opts) \
@@ -32,6 +34,8 @@ void router_perform_bandwidth_test(int num_circs, time_t now);
   STMT_NIL
 #define router_dirport_found_reachable() \
   STMT_NIL
+#define router_reset_reachability() \
+  STMT_NIL
 
 static inline void
 router_do_reachability_checks(int test_or, int test_dir)