From 11e8a445c3051f017600b27999f0d666b7d63b04 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Mon, 31 Dec 2012 18:23:28 +0100 Subject: Fix a couple of harmless clang3.2 warnings --- src/or/dirvote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/dirvote.c') diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 1b9af0f731..3000ee26e5 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -2223,7 +2223,7 @@ networkstatus_add_detached_signatures(networkstatus_t *target, { digests_t *digests = strmap_get(sigs->digests, flavor); int n_matches = 0; - digest_algorithm_t alg; + int alg; if (!digests) { *msg_out = "No digests for given consensus flavor"; return -1; @@ -3471,7 +3471,7 @@ dirvote_free_all(void) const char * dirvote_get_pending_consensus(consensus_flavor_t flav) { - tor_assert(((int)flav) >= 0 && flav < N_CONSENSUS_FLAVORS); + tor_assert(((int)flav) >= 0 && (int)flav < N_CONSENSUS_FLAVORS); return pending_consensuses[flav].body; } -- cgit v1.2.3-54-g00ecf