]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix signed/unsigned compare warning
authorNick Mathewson <nickm@torproject.org>
Fri, 18 Mar 2011 16:42:00 +0000 (12:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 18 Mar 2011 16:42:00 +0000 (12:42 -0400)
src/or/geoip.c

index a99165488a7698d8f043af7d4ed0b3b3ee78f8df..654241c1c0120514afcdd43de6b6e1000912e8f7 100644 (file)
@@ -426,7 +426,7 @@ geoip_note_client_seen(geoip_client_action_t action,
     ent->action = (int)action;
     HT_INSERT(clientmap, &client_history, ent);
   }
-  if (now / 60 <= MAX_LAST_SEEN_IN_MINUTES && now >= 0)
+  if (now / 60 <= (int)MAX_LAST_SEEN_IN_MINUTES && now >= 0)
     ent->last_seen_in_minutes = (unsigned)(now/60);
   else
     ent->last_seen_in_minutes = 0;