[or-cvs] [tor/master] Fix compile warning on Panther.

Nick Mathewson nickm at seul.org
Tue Dec 15 19:49:22 UTC 2009


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon, 14 Dec 2009 10:07:20 +0100
Subject: Fix compile warning on Panther.
Commit: d384f5e1ed56ef4b1e262cc5491a9f6d06e0fc0f

Apparently Panther doesn't like comparing ints and enums
---
 src/or/networkstatus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 1b5aff2..e1a4280 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1516,7 +1516,7 @@ networkstatus_set_current_consensus(const char *consensus,
     goto done;
   }
 
-  if (c->flavor != flav) {
+  if ((int)c->flavor != flav) {
     /* This wasn't the flavor we thought we were getting. */
     if (require_flavor) {
       log_warn(LD_DIR, "Got consensus with unexpected flavor %s (wanted %s)",
-- 
1.5.6.5



More information about the tor-commits mailing list