diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-27 14:45:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-31 19:15:36 -0400 |
commit | e8ac2a84774214596b031599e134cb4fa886dd1f (patch) | |
tree | c62afa69b36b7be4d0e22b2fe8c39ebcb449057a | |
parent | fd992deeea769721dc95bacb40ea360ef42f76dd (diff) | |
download | tor-e8ac2a84774214596b031599e134cb4fa886dd1f.tar.gz tor-e8ac2a84774214596b031599e134cb4fa886dd1f.zip |
Make the second argument to routerset_contains_extendinfo const
-rw-r--r-- | src/or/or.h | 3 | ||||
-rw-r--r-- | 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 6cc30c4f0b..330b2ecbe7 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 ed7f2f7a11..d8165e63bd 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, |