diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-25 11:36:28 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 11:36:28 -0400 |
commit | b0767e85b8214677b7989723e55fbbf3ce24f3f2 (patch) | |
tree | bf9bef0c26796523c180a1f981b7bc912b9e598c /src/common | |
parent | 0ca83872468af59b94e14fe7fdfcb38cb5a3f496 (diff) | |
download | tor-b0767e85b8214677b7989723e55fbbf3ce24f3f2.tar.gz tor-b0767e85b8214677b7989723e55fbbf3ce24f3f2.zip |
Tell autoconf to make the compiler act as c99
Apparently some compilers want extra switches.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/address.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/address.c b/src/common/address.c index f79736dd0b..07b76597da 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -471,7 +471,6 @@ tor_addr_parse_PTR_name(tor_addr_t *result, const char *address, if (!strcasecmpend(address, ".ip6.arpa")) { const char *cp; - int i; int n0, n1; struct in6_addr in6; @@ -479,7 +478,7 @@ tor_addr_parse_PTR_name(tor_addr_t *result, const char *address, return -1; cp = address; - for (i = 0; i < 16; ++i) { + for (int i = 0; i < 16; ++i) { n0 = hex_decode_digit(*cp++); /* The low-order nybble appears first. */ if (*cp++ != '.') return -1; /* Then a dot. */ n1 = hex_decode_digit(*cp++); /* The high-order nybble appears first. */ |