[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix compilation errors in resolvemyaddr tests



commit c07747be2e5bd4b9311c260b49f4007975138005
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Dec 29 09:29:32 2014 -0500

    Fix compilation errors in resolvemyaddr tests
---
 src/test/test_config.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/test/test_config.c b/src/test/test_config.c
index fa68129..4217720 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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits