diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-07 17:15:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-07 17:15:46 +0000 |
commit | eac917fd6afb6bda90012e2fee8fe40d57c67b7f (patch) | |
tree | f967146de36726a95449cc8aaa953b613e41a5ed | |
parent | 5c6c88e76d65c4817cd44048ad5803a4b0c1cb9e (diff) | |
download | tor-eac917fd6afb6bda90012e2fee8fe40d57c67b7f.tar.gz tor-eac917fd6afb6bda90012e2fee8fe40d57c67b7f.zip |
clean whitespace.
svn:r4912
-rw-r--r-- | src/or/directory.c | 2 | ||||
-rw-r--r-- | src/or/or.h | 1 | ||||
-rw-r--r-- | src/or/routerparse.c | 7 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 1465f74f10..b9f1044d58 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1127,7 +1127,7 @@ directory_handle_command_get(connection_t *conn, char *headers, *cp = '\0'; /* XXXX This could be way more efficiently handled. */ if (tor_gzip_compress(&compressed, &compressed_len, - inp, cp-inp, ZLIB_METHOD)<0){ + inp, cp-inp, ZLIB_METHOD)<0) { tor_free(cp); smartlist_free(descs); return -1; diff --git a/src/or/or.h b/src/or/or.h index 6be1ceeb89..ac357c978f 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -705,7 +705,6 @@ typedef struct addr_policy_t { struct addr_policy_t *next; /**< Next rule in list. */ } addr_policy_t; - /** A cached_dir_t represents a cacheable directory object, along with its * compressed form. */ typedef struct cached_dir_t { diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 6997f41487..de9589462c 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1346,20 +1346,20 @@ networkstatus_parse_from_string(const char *s) goto err; } - if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1){ + if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1) { log_fn(LOG_WARN, "Missing client-versions"); goto err; } ns->client_versions = tok->args[0]; - if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1){ + if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1) { log_fn(LOG_WARN, "Missing client-versions"); goto err; } ns->client_versions = tok->args[0]; tok->args[0] = NULL; - if (!(tok = find_first_by_keyword(tokens, K_SERVER_VERSIONS)) || tok->n_args<1){ + if (!(tok = find_first_by_keyword(tokens, K_SERVER_VERSIONS)) || tok->n_args<1) { log_fn(LOG_WARN, "Missing server-versions"); goto err; } @@ -1421,7 +1421,6 @@ networkstatus_parse_from_string(const char *s) return ns; } - /** Parse the exit policy in the string <b>s</b> and return it. If * assume_action is nonnegative, then insert its action (ADDR_POLICY_ACCEPT or * ADDR_POLICY_REJECT) for items that specify no action. |