]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile warning on Panther.
authorSebastian Hahn <sebastian@torproject.org>
Mon, 14 Dec 2009 09:07:20 +0000 (10:07 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 14 Dec 2009 09:07:20 +0000 (10:07 +0100)
Apparently Panther doesn't like comparing ints and enums

src/or/networkstatus.c

index 1b5aff282f512f0cff40b3c4f1f8e1f884ee28a5..e1a42803fa130e2224fc20e6f8873aadff2bcb42 100644 (file)
@@ -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)",