From: Sebastian Hahn Date: Mon, 14 Dec 2009 09:07:20 +0000 (+0100) Subject: Fix compile warning on Panther. X-Git-Tag: tor-0.2.2.7-alpha~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d384f5e1ed56ef4b1e262cc5491a9f6d06e0fc0f;p=thirdparty%2Ftor.git Fix compile warning on Panther. Apparently Panther doesn't like comparing ints and enums --- diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 1b5aff282f..e1a42803fa 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)",