mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
clean whitespace.
svn:r4912
This commit is contained in:
parent
5c6c88e76d
commit
eac917fd6a
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user