]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix C89 warning (since Tor 0.2.4-5 still care about that.)
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Jun 2017 18:38:38 +0000 (14:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Jun 2017 18:38:38 +0000 (14:38 -0400)
src/or/geoip.c

index 4abd5191f43d7fbc4f45ca1a4f5c90ecda8df359..2db64c96653b7098f88385aa8beb1704c7eb515e 100644 (file)
@@ -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 ||