diff options
author | Linus Nordberg <linus@torproject.org> | 2012-10-19 23:23:04 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-10-22 12:36:34 +0200 |
commit | 8c9b4274255beb7b6397a4303fbb054fb55a4f11 (patch) | |
tree | 8081a491c55144cd0c57988ff2783e9b2edca2b4 /src/or/geoip.c | |
parent | 9d71d97e9dc32789693df135c06574a16d1ebfea (diff) | |
download | tor-8c9b4274255beb7b6397a4303fbb054fb55a4f11.tar.gz tor-8c9b4274255beb7b6397a4303fbb054fb55a4f11.zip |
Name variables more consistently.
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | src/or/geoip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index 0097a7edfd..de8e280ad9 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -1428,7 +1428,7 @@ static char *bridge_stats_extrainfo = NULL; char * geoip_format_bridge_stats(time_t now) { - char *out = NULL, *data = NULL, *ipver = NULL; + char *out = NULL, *country_data = NULL, *ipver_data = NULL; long duration = now - start_of_bridge_stats_interval; char written[ISO_TIME_LEN+1]; @@ -1438,17 +1438,17 @@ geoip_format_bridge_stats(time_t now) return NULL; /* Not initialized. */ format_iso_time(written, now); - geoip_get_client_history(GEOIP_CLIENT_CONNECT, &data, &ipver); + geoip_get_client_history(GEOIP_CLIENT_CONNECT, &country_data, &ipver_data); tor_asprintf(&out, "bridge-stats-end %s (%ld s)\n" "bridge-ips %s\n" "bridge-ip-versions %s\n", written, duration, - data ? data : "", - ipver ? ipver : ""); - tor_free(data); - tor_free(ipver); + country_data ? country_data : "", + ipver_data ? ipver_data : ""); + tor_free(country_data); + tor_free(ipver_data); return out; } |