mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Fix compilation warnings
This commit is contained in:
parent
35e886fe13
commit
e3cf39cefd
3 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue