projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332a191
)
nslookup: placate "warning: unused variable i"
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 27 Jun 2018 12:44:35 +0000
(14:44 +0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/networking/nslookup.c
b/networking/nslookup.c
index fd241a5ca60c883424febce6d8b7cdb8b6db48da..3a614b0c6c60d89b09c2a8f5b98bd8bc535ec97e 100644
(file)
--- 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++) {