diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-29 09:29:32 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-29 10:00:22 -0500 |
commit | c07747be2e5bd4b9311c260b49f4007975138005 (patch) | |
tree | 0cc3b68641e76f6e4a47c7ff7d16c7f8868ec7d6 /src | |
parent | 28217b969eec213e7eb01bc8382fb1236eb4bbdd (diff) | |
download | tor-c07747be2e5bd4b9311c260b49f4007975138005.tar.gz tor-c07747be2e5bd4b9311c260b49f4007975138005.zip |
Fix compilation errors in resolvemyaddr tests
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index fa68129126..4217720174 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -680,6 +680,8 @@ static int n_gethostname_failure = 0; static int tor_gethostname_failure(char *name, size_t namelen) { + (void)name; + (void)namelen; n_gethostname_failure++; return -1; @@ -765,6 +767,8 @@ static int get_interface_address6_failure(int severity, sa_family_t family, tor_addr_t *addr) { + (void)severity; + (void)addr; n_get_interface_address6_failure++; last_address6_family = family; @@ -774,8 +778,6 @@ get_interface_address6_failure(int severity, sa_family_t family, static void test_config_resolve_my_address(void *arg) { - (void)arg; - or_options_t *options; uint32_t resolved_addr; const char *method_used; @@ -792,6 +794,8 @@ test_config_resolve_my_address(void *arg) int prev_n_get_interface_address6; int prev_n_get_interface_address6_failure; + (void)arg; + options = options_new(); options_init(options); |