[or-cvs] [tor/maint-0.2.1] Make the second argument to routerset_contains_extendinfo const

Nick Mathewson nickm at seul.org
Sun May 31 23:16:38 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Wed, 27 May 2009 14:45:44 -0400
Subject: Make the second argument to routerset_contains_extendinfo const
Commit: e8ac2a84774214596b031599e134cb4fa886dd1f

---
 src/or/or.h         |    3 ++-
 src/or/routerlist.c |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/or/or.h b/src/or/or.h
index 6cc30c4..330b2ec 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4504,7 +4504,8 @@ int routerset_needs_geoip(const routerset_t *set);
 int routerset_contains_router(const routerset_t *set, routerinfo_t *ri);
 int routerset_contains_routerstatus(const routerset_t *set,
                                     routerstatus_t *rs);
-int routerset_contains_extendinfo(const routerset_t *set, extend_info_t *ei);
+int routerset_contains_extendinfo(const routerset_t *set,
+                                  const extend_info_t *ei);
 void routerset_get_all_routers(smartlist_t *out, const routerset_t *routerset,
                                int running_only);
 void routersets_get_disjunction(smartlist_t *target, const smartlist_t *source,
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index ed7f2f7..d8165e6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5119,7 +5119,7 @@ routerset_contains(const routerset_t *set, const tor_addr_t *addr,
 
 /** Return true iff we can tell that <b>ei</b> is a member of <b>set</b>. */
 int
-routerset_contains_extendinfo(const routerset_t *set, extend_info_t *ei)
+routerset_contains_extendinfo(const routerset_t *set, const extend_info_t *ei)
 {
   return routerset_contains(set,
                             &ei->addr,
-- 
1.5.6.5




More information about the tor-commits mailing list