Fix compilation warnings

This commit is contained in:
Nick Mathewson 2015-11-20 10:51:19 -05:00
parent 35e886fe13
commit e3cf39cefd
3 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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

View File

@ -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;
}