summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2018-06-27 14:44:35 +0200
committerDenys Vlasenko2018-06-27 14:44:35 +0200
commit2f7738e4748594227c95bef86acf73436c334e2d (patch)
tree907663d6c4863aecb8338d9bffca7a9e9bdf4220 /networking
parent332a191e7fc0fd17a99d168077228fdc15549f2b (diff)
downloadbusybox-2f7738e4748594227c95bef86acf73436c334e2d.zip
busybox-2f7738e4748594227c95bef86acf73436c334e2d.tar.gz
nslookup: placate "warning: unused variable i"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/nslookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nslookup.c b/networking/nslookup.c
index fd241a5..3a614b0 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++) {