diff options
author | George Kadianakis <desnacked@riseup.net> | 2013-07-29 15:59:59 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-31 13:34:16 -0400 |
commit | aaf79eb4d334fb5e1f98d0a68b3a30dde983325a (patch) | |
tree | c1ce76e2ba0311d806c484c912108fb8ae22428f /src/or | |
parent | 2e7c531fdc63ed3d96180a10ea5d7d27989092a9 (diff) | |
download | tor-aaf79eb4d334fb5e1f98d0a68b3a30dde983325a.tar.gz tor-aaf79eb4d334fb5e1f98d0a68b3a30dde983325a.zip |
Write unit tests for configure_proxy().
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/transports.c | 4 | ||||
-rw-r--r-- | src/or/transports.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index 604d9fce82..3aced21b3d 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -106,8 +106,6 @@ static void managed_proxy_destroy(managed_proxy_t *mp, int also_terminate_process); static void handle_finished_proxy(managed_proxy_t *mp); -static int configure_proxy(managed_proxy_t *mp); - static void parse_method_error(const char *line, int is_server_method); #define parse_server_method_error(l) parse_method_error(l, 1) #define parse_client_method_error(l) parse_method_error(l, 0) @@ -590,7 +588,7 @@ pt_configure_remaining_proxies(void) * Return 1 if the transport configuration finished, and return 0 * otherwise (if we still have more configuring to do for this * proxy). */ -static int +STATIC int configure_proxy(managed_proxy_t *mp) { int configuration_finished = 0; diff --git a/src/or/transports.h b/src/or/transports.h index cc3e018d6d..7f180a67b9 100644 --- a/src/or/transports.h +++ b/src/or/transports.h @@ -111,6 +111,8 @@ STATIC int parse_version(const char *line, managed_proxy_t *mp); STATIC void parse_env_error(const char *line); STATIC void handle_proxy_line(const char *line, managed_proxy_t *mp); +STATIC int configure_proxy(managed_proxy_t *mp); + #endif #endif |