Browse Source

Fix compile warning on Panther.

Apparently Panther doesn't like comparing ints and enums
Sebastian Hahn 15 years ago
parent
commit
d384f5e1ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/networkstatus.c

+ 1 - 1
src/or/networkstatus.c

@@ -1516,7 +1516,7 @@ networkstatus_set_current_consensus(const char *consensus,
     goto done;
     goto done;
   }
   }
 
 
-  if (c->flavor != flav) {
+  if ((int)c->flavor != flav) {
     /* This wasn't the flavor we thought we were getting. */
     /* This wasn't the flavor we thought we were getting. */
     if (require_flavor) {
     if (require_flavor) {
       log_warn(LD_DIR, "Got consensus with unexpected flavor %s (wanted %s)",
       log_warn(LD_DIR, "Got consensus with unexpected flavor %s (wanted %s)",