clean whitespace.

svn:r4912
This commit is contained in:
Nick Mathewson 2005-09-07 17:15:46 +00:00
parent 5c6c88e76d
commit eac917fd6a
3 changed files with 4 additions and 6 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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.