diff options
author | Roger Dingledine <arma@torproject.org> | 2008-08-26 19:13:54 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-08-26 19:13:54 +0000 |
commit | 5d73e3751957188c4dd4e853063ce23ca1dd3ad4 (patch) | |
tree | 0d35a9f36dddd44df2e6bc2cbea48a1cadf222f3 /src/tools | |
parent | 845d2c26b4ea2775796cf2d60011433df6ef7e78 (diff) | |
download | tor-5d73e3751957188c4dd4e853063ce23ca1dd3ad4.tar.gz tor-5d73e3751957188c4dd4e853063ce23ca1dd3ad4.zip |
and then make the indentation right
svn:r16663
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index d4e81003ee..04822a15d6 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -141,28 +141,28 @@ parse_socks4a_resolve_response(const char *response, size_t len, static const char * socks5_reason_to_string(char reason) { - switch(reason) { - case SOCKS5_SUCCEEDED: - return "succeeded"; - case SOCKS5_GENERAL_ERROR: - return "general error"; - case SOCKS5_NOT_ALLOWED: - return "not allowed"; - case SOCKS5_NET_UNREACHABLE: - return "network is unreachable"; - case SOCKS5_HOST_UNREACHABLE: - return "host is unreachable"; - case SOCKS5_CONNECTION_REFUSED: - return "connection refused"; - case SOCKS5_TTL_EXPIRED: - return "ttl expired"; - case SOCKS5_COMMAND_NOT_SUPPORTED: - return "command not supported"; - case SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED: - return "address type not supported"; - default: - return "unknown SOCKS5 code"; - } + switch(reason) { + case SOCKS5_SUCCEEDED: + return "succeeded"; + case SOCKS5_GENERAL_ERROR: + return "general error"; + case SOCKS5_NOT_ALLOWED: + return "not allowed"; + case SOCKS5_NET_UNREACHABLE: + return "network is unreachable"; + case SOCKS5_HOST_UNREACHABLE: + return "host is unreachable"; + case SOCKS5_CONNECTION_REFUSED: + return "connection refused"; + case SOCKS5_TTL_EXPIRED: + return "ttl expired"; + case SOCKS5_COMMAND_NOT_SUPPORTED: + return "command not supported"; + case SOCKS5_ADDRESS_TYPE_NOT_SUPPORTED: + return "address type not supported"; + default: + return "unknown SOCKS5 code"; + } } /** Send a resolve request for <b>hostname</b> to the Tor listening on |