Normalize whitespace; add a "tell me about all the unnormalized whitespace" target; fix a braino in dirserv.c

svn:r2758
This commit is contained in:
Nick Mathewson
2004-11-09 20:04:00 +00:00
parent 54b472a833
commit 1bb4357ed7
27 changed files with 65 additions and 77 deletions
+4 -4
View File
@@ -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]");