nslookup: placate "warning: unused variable i"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-06-27 14:44:35 +02:00
parent 332a191e7f
commit 2f7738e474

View File

@ -712,11 +712,11 @@ static void add_query(int type, const char *dname)
static char *make_ptr(const char *addrstr) static char *make_ptr(const char *addrstr)
{ {
unsigned char addr[16]; unsigned char addr[16];
int i;
#if ENABLE_FEATURE_IPV6 #if ENABLE_FEATURE_IPV6
if (inet_pton(AF_INET6, addrstr, addr)) { if (inet_pton(AF_INET6, addrstr, addr)) {
if (memcmp(addr, v4_mapped, 12) != 0) { if (memcmp(addr, v4_mapped, 12) != 0) {
int i;
char resbuf[80]; char resbuf[80];
char *ptr = resbuf; char *ptr = resbuf;
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {