mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a signed/unsigned comparison warning
This commit is contained in:
parent
54c97c9133
commit
181674e9bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user