aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-12-31 18:23:28 +0100
committerSebastian Hahn <sebastian@torproject.org>2012-12-31 18:23:28 +0100
commit11e8a445c3051f017600b27999f0d666b7d63b04 (patch)
tree07ad0a898053b51a7bf1ffe6ebefcb1814ae14c6 /src/or
parent51c2dd8f8954d52fbaef29d2afb44d5eda47f4da (diff)
downloadtor-11e8a445c3051f017600b27999f0d666b7d63b04.tar
tor-11e8a445c3051f017600b27999f0d666b7d63b04.tar.gz
Fix a couple of harmless clang3.2 warnings
Diffstat (limited to 'src/or')
-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 1b9af0f73..3000ee26e 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;
}