diff options
-rw-r--r-- | src/or/policies.c | 2 | ||||
-rw-r--r-- | src/or/policies.h | 2 | ||||
-rw-r--r-- | src/test/test_policy.c | 2 |
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; } |