aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-29 10:33:34 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-01-29 10:33:34 +0000
commit8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15 (patch)
tree998a337ecd57b737423a3793365519213f97da72 /networking/ifconfig.c
parentc882f341cec8451ee87af6746abb7208272d5b1a (diff)
downloadbusybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.tar.gz
busybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.tar.bz2
busybox-w32-8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15.zip
- be C99 friendly. Anonymous unions are a GNU extension. This change is
size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index fff5f5d2e..fcbeb2420 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -392,12 +392,12 @@ int ifconfig_main(int argc, char **argv)
392 continue; /* compat stuff */ 392 continue; /* compat stuff */
393 lsa = xhost2sockaddr(host, 0); 393 lsa = xhost2sockaddr(host, 0);
394#if ENABLE_FEATURE_IPV6 394#if ENABLE_FEATURE_IPV6
395 if (lsa->sa.sa_family == AF_INET6) { 395 if (lsa->u.sa.sa_family == AF_INET6) {
396 int sockfd6; 396 int sockfd6;
397 struct in6_ifreq ifr6; 397 struct in6_ifreq ifr6;
398 398
399 memcpy((char *) &ifr6.ifr6_addr, 399 memcpy((char *) &ifr6.ifr6_addr,
400 (char *) &(lsa->sin6.sin6_addr), 400 (char *) &(lsa->u.sin6.sin6_addr),
401 sizeof(struct in6_addr)); 401 sizeof(struct in6_addr));
402 402
403 /* Create a channel to the NET kernel. */ 403 /* Create a channel to the NET kernel. */
@@ -411,7 +411,7 @@ int ifconfig_main(int argc, char **argv)
411 continue; 411 continue;
412 } 412 }
413#endif 413#endif
414 sai.sin_addr = lsa->sin.sin_addr; 414 sai.sin_addr = lsa->u.sin.sin_addr;
415 if (ENABLE_FEATURE_CLEAN_UP) 415 if (ENABLE_FEATURE_CLEAN_UP)
416 free(lsa); 416 free(lsa);
417 } 417 }