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

[tor-commits] [tor/master] Make mock function static to prevent future clashes



commit 05cf2867131eaa1dc017605f67cb7ac433ea263d
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
Date:   Wed Apr 20 17:39:09 2016 +1000

    Make mock function static to prevent future clashes
---
 src/test/test_policy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 48e8255..a939ebf 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -716,10 +716,9 @@ test_policies_reject_exit_address(void *arg)
 }
 
 static smartlist_t *test_configured_ports = NULL;
-const smartlist_t *mock_get_configured_ports(void);
 
 /** Returns test_configured_ports */
-const smartlist_t *
+static const smartlist_t *
 mock_get_configured_ports(void)
 {
   return test_configured_ports;



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