diff options
author | Roger Dingledine <arma@torproject.org> | 2006-02-13 08:22:57 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-02-13 08:22:57 +0000 |
commit | 7d80921afadcbe8ed6300bccf29bc7e04c7bdf41 (patch) | |
tree | 9801c8cb1140571cec0c84cdecc7bac3a6ac07ea /src/or/config.c | |
parent | 6ce36ead4284cdd973fdc4e310a2052fd9d46658 (diff) | |
download | tor-7d80921afadcbe8ed6300bccf29bc7e04c7bdf41.tar tor-7d80921afadcbe8ed6300bccf29bc7e04c7bdf41.tar.gz |
resolve too-long-lines
svn:r6001
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c index 37d99f754..669c47bbd 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -318,8 +318,9 @@ typedef struct { config_var_t *vars; validate_fn_t validate_fn; config_var_description_t *descriptions; - config_var_t *extra; /**< If present, a LINELIST variable for unrecognized - * lines. Otherwise, unrecognized lines are an error. */ + /** If present, extra is a LINELIST variable for unrecognized + * lines. Otherwise, unrecognized lines are an error. */ + config_var_t *extra; } config_format_t; #define CHECK(fmt, cfg) do { \ @@ -3227,10 +3228,14 @@ config_addr_policy_covers(addr_policy_t *a, addr_policy_t *b) /* We can ignore accept/reject, since "accept *:80, reject *:80" reduces to * "accept *:80". */ - if (a->msk & ~b->msk) - return 0; /* There's a wildcard bit in b->msk that's not a wildcard in a. */ - if ((a->addr & a->msk) != (b->addr & a->msk)) - return 0; /* There's a fixed bit in a that's set differently in b. */ + if (a->msk & ~b->msk) { + /* There's a wildcard bit in b->msk that's not a wildcard in a. */ + return 0; + } + if ((a->addr & a->msk) != (b->addr & a->msk)) { + /* There's a fixed bit in a that's set differently in b. */ + return 0; + } return (a->prt_min <= b->prt_min && a->prt_max >= b->prt_max); } |