mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Move router_reset_reachability() into correct header, add a stub
Without this, -O0 builds fail, which is a sign that LTO builds may fail too.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user