Rename a field so weasel likes it better

svn:r16552
This commit is contained in:
Peter Palfrader 2008-08-14 23:01:09 +00:00
parent ceae7ed960
commit 41730a893c
2 changed files with 3 additions and 3 deletions

View File

@ -1420,7 +1420,7 @@ typedef struct routerstatus_t {
uint32_t bandwidth; /**< Bandwidth (capacity) of the router as reported in uint32_t bandwidth; /**< Bandwidth (capacity) of the router as reported in
* the vote/consensus, in kilobytes/sec. */ * the vote/consensus, in kilobytes/sec. */
addr_policy_action_t exitsummarytype; /**< is the list of ports a list of addr_policy_action_t exitsummary_type; /**< is the list of ports a list of
* rejected or accepted ports? */ * rejected or accepted ports? */
char *exitsummary; /**< exit policy summary - char *exitsummary; /**< exit policy summary -
* XXX weasel: this probably should not stay a string. */ * XXX weasel: this probably should not stay a string. */

View File

@ -1888,9 +1888,9 @@ routerstatus_parse_entry_from_string(memarea_t *area,
if ((tok = find_first_by_keyword(tokens, K_P))) { if ((tok = find_first_by_keyword(tokens, K_P))) {
tor_assert(tok->n_args == 2); tor_assert(tok->n_args == 2);
if (!strcmp(tok->args[0], "accept")) if (!strcmp(tok->args[0], "accept"))
rs->exitsummarytype = ADDR_POLICY_ACCEPT; rs->exitsummary_type = ADDR_POLICY_ACCEPT;
else if (!strcmp(tok->args[0], "reject")) else if (!strcmp(tok->args[0], "reject"))
rs->exitsummarytype = ADDR_POLICY_REJECT; rs->exitsummary_type = ADDR_POLICY_REJECT;
else { else {
log_warn(LD_DIR, "Unknown exit policy summary type %s.", log_warn(LD_DIR, "Unknown exit policy summary type %s.",
escaped(tok->args[0])); escaped(tok->args[0]));