[or-cvs] r16552: {tor} Rename a field so weasel likes it better (tor/trunk/src/or)

weasel at seul.org weasel at seul.org
Thu Aug 14 23:01:10 UTC 2008


Author: weasel
Date: 2008-08-14 19:01:09 -0400 (Thu, 14 Aug 2008)
New Revision: 16552

Modified:
   tor/trunk/src/or/or.h
   tor/trunk/src/or/routerparse.c
Log:
Rename a field so weasel likes it better

Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h	2008-08-14 23:00:57 UTC (rev 16551)
+++ tor/trunk/src/or/or.h	2008-08-14 23:01:09 UTC (rev 16552)
@@ -1420,7 +1420,7 @@
 
   uint32_t bandwidth; /**< Bandwidth (capacity) of the router as reported in
                        * 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? */
   char *exitsummary; /**< exit policy summary -
                       * XXX weasel: this probably should not stay a string. */

Modified: tor/trunk/src/or/routerparse.c
===================================================================
--- tor/trunk/src/or/routerparse.c	2008-08-14 23:00:57 UTC (rev 16551)
+++ tor/trunk/src/or/routerparse.c	2008-08-14 23:01:09 UTC (rev 16552)
@@ -1888,9 +1888,9 @@
   if ((tok = find_first_by_keyword(tokens, K_P))) {
     tor_assert(tok->n_args == 2);
     if (!strcmp(tok->args[0], "accept"))
-      rs->exitsummarytype = ADDR_POLICY_ACCEPT;
+      rs->exitsummary_type = ADDR_POLICY_ACCEPT;
     else if (!strcmp(tok->args[0], "reject"))
-      rs->exitsummarytype = ADDR_POLICY_REJECT;
+      rs->exitsummary_type = ADDR_POLICY_REJECT;
     else {
       log_warn(LD_DIR, "Unknown exit policy summary type %s.",
                escaped(tok->args[0]));



More information about the tor-commits mailing list