aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-20 10:51:19 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-20 10:51:19 -0500
commite3cf39cefd24e2cc0d70a1726ac19fc86e4e47e7 (patch)
tree8b695eef098951feab17cf6ae267be8dfcad08c5 /src
parent35e886fe13a81b36c8a620f7046e6e9e6c088d01 (diff)
downloadtor-e3cf39cefd24e2cc0d70a1726ac19fc86e4e47e7.tar.gz
tor-e3cf39cefd24e2cc0d70a1726ac19fc86e4e47e7.zip
Fix compilation warnings
Diffstat (limited to 'src')
-rw-r--r--src/or/policies.c2
-rw-r--r--src/or/policies.h2
-rw-r--r--src/test/test_policy.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index f4cde43ae4..d588a805db 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -8,6 +8,8 @@
* \brief Code to parse and use address policies and exit policies.
**/
+#define POLICIES_PRIVATE
+
#include "or.h"
#include "config.h"
#include "dirserv.h"
diff --git a/src/or/policies.h b/src/or/policies.h
index 72e62c7de0..bb56bf42b8 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -93,7 +93,7 @@ addr_policy_result_t compare_tor_addr_to_short_policy(
const short_policy_t *policy);
#ifdef POLICIES_PRIVATE
-void append_exit_policy_string(smartlist_t **policy, const char *more);
+STATIC void append_exit_policy_string(smartlist_t **policy, const char *more);
#endif
#endif
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 9ab3abe35a..4cf56c8b3a 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -826,7 +826,7 @@ test_dump_exit_policy_to_string(void *arg)
}
static routerinfo_t *mock_desc_routerinfo = NULL;
-const routerinfo_t *mock_router_get_my_routerinfo(void)
+static const routerinfo_t *mock_router_get_my_routerinfo(void)
{
return mock_desc_routerinfo;
}