diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-09 20:04:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-09 20:04:00 +0000 |
commit | 5a5be93f80a3cdb3d72311ece04ccc510c15626c (patch) | |
tree | e8c93b2cc57de810b0dfb0dc35a90727be4a57dc /src/tools | |
parent | d9d053d70b23ef46610867298dabdec579cef9c4 (diff) | |
download | tor-5a5be93f80a3cdb3d72311ece04ccc510c15626c.tar.gz tor-5a5be93f80a3cdb3d72311ece04ccc510c15626c.zip |
Normalize whitespace; add a "tell me about all the unnormalized whitespace" target; fix a braino in dirserv.c
svn:r2758
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index d451ceb40e..a12df00377 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -44,7 +44,7 @@ do { log_fn(LOG_ERR, "Error while %s: %s", act, \ tor_socket_strerror(tor_socket_errno(_s))); } while(0) -static int +static int build_socks4a_resolve_request(char **out, const char *username, const char *hostname) @@ -66,7 +66,7 @@ build_socks4a_resolve_request(char **out, return len; } -static int +static int parse_socks4a_resolve_response(const char *response, size_t len, uint32_t *addr_out) { @@ -88,7 +88,7 @@ parse_socks4a_resolve_response(const char *response, size_t len, return 0; } -static int +static int do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport, uint32_t *result_addr) { @@ -152,7 +152,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport, return 0; } -static void +static void usage(void) { puts("Syntax: tor-resolve [-v] hostname [sockshost:socksport]"); |