[tor-commits] [tor/maint-0.2.6] Fix C89 warning (since Tor 0.2.4-5 still care about that.)

nickm at torproject.org nickm at torproject.org
Mon Jun 5 18:39:44 UTC 2017


commit 4ee48cb434c46d9e4c477dabd8a97f03e3db221d
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Jun 5 14:38:38 2017 -0400

    Fix C89 warning (since Tor 0.2.4-5 still care about that.)
---
 src/or/geoip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/geoip.c b/src/or/geoip.c
index 4abd519..2db64c9 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -126,6 +126,7 @@ geoip_parse_entry(const char *line, sa_family_t family)
   tor_addr_t low_addr, high_addr;
   char c[3];
   char *country = NULL;
+  char buf[512];
 
   if (!geoip_countries)
     init_geoip_countries();
@@ -145,7 +146,6 @@ geoip_parse_entry(const char *line, sa_family_t family)
   if (*line == '#')
     return 0;
 
-  char buf[512];
   if (family == AF_INET) {
     unsigned int low, high;
     if (tor_sscanf(line,"%u,%u,%2s", &low, &high, c) == 3 ||





More information about the tor-commits mailing list