Browse Source

Make mock function static to prevent future clashes

teor (Tim Wilson-Brown) 8 years ago
parent
commit
05cf286713
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/test/test_policy.c

+ 1 - 2
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;