nslookup: placate "warning: unused variable i"
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Jun 2018 12:44:35 +0000 (14:44 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Jun 2018 12:44:35 +0000 (14:44 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/nslookup.c

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