]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Name variables more consistently.
authorLinus Nordberg <linus@torproject.org>
Fri, 19 Oct 2012 21:23:04 +0000 (23:23 +0200)
committerLinus Nordberg <linus@torproject.org>
Mon, 22 Oct 2012 10:36:34 +0000 (12:36 +0200)
src/or/geoip.c
src/or/or.h
src/or/policies.c

index 0097a7edfd0d344fb37944d93f19da1f5cc2f367..de8e280ad90b1b104540dd943bb7355ec0f60e32 100644 (file)
@@ -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;
 }
index 26b8973eff562f534a15c2d81b7e4c033ce166a5..5c6e998081240cac78348e7d5a5a3e2b723b85ed 100644 (file)
@@ -3657,7 +3657,7 @@ typedef struct {
    * the bridge authority guess which countries have blocked access to us. */
   int BridgeRecordUsageByCountry;
 
-  /** Optionally, IPv4 and IPv6 GeoIP data */
+  /** Optionally, IPv4 and IPv6 GeoIP data. */
   char *GeoIPFile;
   char *GeoIPv6File;
 
index 8187249d86e5fcfd061668a579aae94991673533..ecf1f683d4c6651864ee9166a65db77550172ce9 100644 (file)
@@ -323,7 +323,7 @@ addr_is_in_cc_list(uint32_t addr, const smartlist_t *cc_list)
 
   if (!cc_list)
     return 0;
-  /* XXX: ipv4 specific */
+  /* XXXXipv6 */
   tor_addr_from_ipv4h(&tar, addr);
   country = geoip_get_country_by_addr(&tar);
   name = geoip_get_country_name(country);