mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Fix C89 warning (since Tor 0.2.4-5 still care about that.)
This commit is contained in:
parent
e3ebae4804
commit
4ee48cb434
@ -126,6 +126,7 @@ geoip_parse_entry(const char *line, sa_family_t family)
|
|||||||
tor_addr_t low_addr, high_addr;
|
tor_addr_t low_addr, high_addr;
|
||||||
char c[3];
|
char c[3];
|
||||||
char *country = NULL;
|
char *country = NULL;
|
||||||
|
char buf[512];
|
||||||
|
|
||||||
if (!geoip_countries)
|
if (!geoip_countries)
|
||||||
init_geoip_countries();
|
init_geoip_countries();
|
||||||
@ -145,7 +146,6 @@ geoip_parse_entry(const char *line, sa_family_t family)
|
|||||||
if (*line == '#')
|
if (*line == '#')
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
char buf[512];
|
|
||||||
if (family == AF_INET) {
|
if (family == AF_INET) {
|
||||||
unsigned int low, high;
|
unsigned int low, high;
|
||||||
if (tor_sscanf(line,"%u,%u,%2s", &low, &high, c) == 3 ||
|
if (tor_sscanf(line,"%u,%u,%2s", &low, &high, c) == 3 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user