diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-29 01:35:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:27 -0400 |
commit | 6dd7f85bc7fa9887736feb7604e76d7226d03ca5 (patch) | |
tree | 8c67dcbb38ca53b2d60f38c3f71dec0ab944d6e6 /src/or/control.c | |
parent | d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8 (diff) | |
download | tor-6dd7f85bc7fa9887736feb7604e76d7226d03ca5.tar.gz tor-6dd7f85bc7fa9887736feb7604e76d7226d03ca5.zip |
Try to make most routerstatus_t interfaces const
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/control.c b/src/or/control.c index be887f4ffd..7161fea2d5 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3497,7 +3497,7 @@ control_event_networkstatus_changed_helper(smartlist_t *statuses, smartlist_add(strs, tor_strdup("650+")); smartlist_add(strs, tor_strdup(event_string)); smartlist_add(strs, tor_strdup("\r\n")); - SMARTLIST_FOREACH(statuses, routerstatus_t *, rs, + SMARTLIST_FOREACH(statuses, const routerstatus_t *, rs, { s = networkstatus_getinfo_helper_single(rs); if (!s) continue; @@ -3588,7 +3588,7 @@ control_event_buildtimeout_set(const circuit_build_times_t *cbt, /** Called when a single local_routerstatus_t has changed: Sends an NS event * to any controller that cares. */ int -control_event_networkstatus_changed_single(routerstatus_t *rs) +control_event_networkstatus_changed_single(const routerstatus_t *rs) { smartlist_t *statuses; int r; @@ -3597,7 +3597,7 @@ control_event_networkstatus_changed_single(routerstatus_t *rs) return 0; statuses = smartlist_create(); - smartlist_add(statuses, rs); + smartlist_add(statuses, (void*)rs); r = control_event_networkstatus_changed(statuses); smartlist_free(statuses); return r; |