diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-27 14:19:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-27 14:19:24 -0400 |
commit | 181674e9bba9f4a0155f6172e437931d9560219c (patch) | |
tree | 4fd61e2a1e4c6ba4fb104285d9a3b56100592eaa /src/or/geoip.c | |
parent | 54c97c9133ebbeea6aed9b4526b19fbc0d88377b (diff) | |
download | tor-181674e9bba9f4a0155f6172e437931d9560219c.tar.gz tor-181674e9bba9f4a0155f6172e437931d9560219c.zip |
Fix a signed/unsigned comparison warning
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | 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 6aff1f6233..64ced6ea90 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; |