[tor-commits] [tor/master] dns.h: label functions that are only used inside feature/relay

nickm at torproject.org nickm at torproject.org
Wed Feb 19 18:59:05 UTC 2020


commit 51b470dbc84786f656c8d1f26eb4ff84cc588d00
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Feb 19 12:17:13 2020 -0500

    dns.h: label functions that are only used inside feature/relay
---
 src/feature/relay/dns.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/feature/relay/dns.h b/src/feature/relay/dns.h
index 4e5766af0..70abaf138 100644
--- a/src/feature/relay/dns.h
+++ b/src/feature/relay/dns.h
@@ -16,14 +16,12 @@
 
 int dns_init(void);
 int has_dns_init_failed(void);
-void dns_free_all(void);
 int dns_reset(void);
 void connection_dns_remove(edge_connection_t *conn);
 void assert_connection_edge_not_dns_pending(edge_connection_t *conn);
 void assert_all_pending_dns_resolves_ok(void);
 MOCK_DECL(void,dns_cancel_pending_resolve,(const char *question));
 int dns_resolve(edge_connection_t *exitconn);
-void dns_launch_correctness_checks(void);
 int dns_seems_to_be_broken(void);
 int dns_seems_to_be_broken_for_ipv6(void);
 void dns_reset_correctness_checks(void);
@@ -31,6 +29,11 @@ size_t dns_cache_total_allocation(void);
 void dump_dns_mem_usage(int severity);
 size_t dns_cache_handle_oom(time_t now, size_t min_remove_bytes);
 
+/* These functions are only used within the feature/relay module, and don't
+ * need stubs. */
+void dns_free_all(void);
+void dns_launch_correctness_checks(void);
+
 #else /* !defined(HAVE_MODULE_RELAY) */
 
 #define dns_init() (0)





More information about the tor-commits mailing list