From eac917fd6afb6bda90012e2fee8fe40d57c67b7f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Sep 2005 17:15:46 +0000 Subject: [PATCH] clean whitespace. svn:r4912 --- src/or/directory.c | 2 +- src/or/or.h | 1 - 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 s 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.