]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a signed/unsigned comparison warning
authorNick Mathewson <nickm@torproject.org>
Wed, 27 May 2009 18:19:24 +0000 (14:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 May 2009 18:19:24 +0000 (14:19 -0400)
src/or/geoip.c

index 6aff1f6233a58d31c9ff50d0393642cfae64a9be..64ced6ea9016911785d9b6c6dfe75ffdc6cc0202 100644 (file)
@@ -466,7 +466,7 @@ char *
 geoip_get_client_history(time_t now, geoip_client_action_t action)
 {
   char *result = NULL;
-  unsigned min_observation_time = GEOIP_MIN_OBSERVATION_TIME;
+  int min_observation_time = GEOIP_MIN_OBSERVATION_TIME;
 #ifdef ENABLE_GEOIP_STATS
   min_observation_time = DIR_RECORD_USAGE_MIN_OBSERVATION_TIME;
 #endif
@@ -549,7 +549,7 @@ geoip_get_request_history(time_t now, geoip_client_action_t action)
   smartlist_t *entries, *strings;
   char *result;
   unsigned granularity = IP_GRANULARITY;
-  unsigned min_observation_time = GEOIP_MIN_OBSERVATION_TIME;
+  int min_observation_time = GEOIP_MIN_OBSERVATION_TIME;
 #ifdef ENABLE_GEOIP_STATS
   granularity = DIR_RECORD_USAGE_GRANULARITY;
   min_observation_time = DIR_RECORD_USAGE_MIN_OBSERVATION_TIME;