as suggested by Renaud Cerrato and Souf, switch over to recursive_action() for some...
[oweals/busybox.git] / networking / ifconfig.c
index 96af7b770f6772cf3458c625289420216dc17f48..5742399c5b460b6125513b4b860b33946305c94d 100644 (file)
@@ -37,7 +37,7 @@
 #include <netinet/if_ether.h>
 #endif
 #include "inet_common.h"
-#include "busybox.h"
+#include "libbb.h"
 
 #if ENABLE_FEATURE_IFCONFIG_SLIP
 # include <net/if_slip.h>
@@ -387,9 +387,10 @@ int ifconfig_main(int argc, char **argv)
                                                }
 #endif
                                                else {
+                                                       len_and_sockaddr *lsa;
                                                        if (strcmp(host, "inet") == 0)
                                                                continue; /* compat stuff */
-                                                       len_and_sockaddr *lsa = xhost2sockaddr(host, 0);
+                                                       lsa = xhost2sockaddr(host, 0);
 #if ENABLE_FEATURE_IPV6
                                                        if (lsa->sa.sa_family == AF_INET6) {
                                                                int sockfd6;