[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master] Fix a signed/unsigned comparison warning
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed, 27 May 2009 14:19:24 -0400
Subject: Fix a signed/unsigned comparison warning
Commit: 181674e9bba9f4a0155f6172e437931d9560219c
---
src/or/geoip.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 6aff1f6..64ced6e 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -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;
--
1.5.6.5