From: Denys Vlasenko Date: Wed, 27 Jun 2018 12:44:35 +0000 (+0200) Subject: nslookup: placate "warning: unused variable i" X-Git-Tag: 1_29_0~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f7738e4748594227c95bef86acf73436c334e2d;p=oweals%2Fbusybox.git nslookup: placate "warning: unused variable i" Signed-off-by: Denys Vlasenko --- diff --git a/networking/nslookup.c b/networking/nslookup.c index fd241a5ca..3a614b0c6 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -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++) {