summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-09-15 10:33:58 +0200
committerRoger Dingledine <arma@torproject.org>2009-09-15 07:13:36 -0400
commitb73ecdc232db889790c8842b353cf71b6c7046a9 (patch)
tree051de73e2f62585e3ea529c7921f050da83d2284 /src
parent5e01a86b42fe2c975408dd7be0d2d4627c8c2f38 (diff)
downloadtor-b73ecdc232db889790c8842b353cf71b6c7046a9.tar.gz
tor-b73ecdc232db889790c8842b353cf71b6c7046a9.zip
Fix compile on Snow Leopard
Diffstat (limited to 'src')
-rw-r--r--src/or/dirvote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index c2f0a33448..358246ae9d 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -560,7 +560,7 @@ dirvote_compute_params(smartlist_t *votes)
cur_param = smartlist_get(param_list, 0);
eq = strchr(cur_param, '=');
tor_assert(eq);
- cur_param_len = eq+1 - cur_param;
+ cur_param_len = (int)(eq+1 - cur_param);
output = smartlist_create();
@@ -588,7 +588,7 @@ dirvote_compute_params(smartlist_t *votes)
i = 0;
if (next_param) {
eq = strchr(next_param, '=');
- cur_param_len = eq+1 - next_param;
+ cur_param_len = (int)(eq+1 - next_param);
}
}
} SMARTLIST_FOREACH_END(param);