diff options
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 7b358c43f..4d346c47f 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -26,14 +26,6 @@ | |||
26 | * IPV6 support added by Bart Visscher <magick@linux-fan.com> | 26 | * IPV6 support added by Bart Visscher <magick@linux-fan.com> |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include <stdio.h> | ||
30 | #include <stdlib.h> | ||
31 | #include <string.h> /* strcmp and friends */ | ||
32 | #include <ctype.h> /* isdigit and friends */ | ||
33 | #include <stddef.h> /* offsetof */ | ||
34 | #include <unistd.h> | ||
35 | #include <netdb.h> | ||
36 | #include <sys/ioctl.h> | ||
37 | #include <net/if.h> | 29 | #include <net/if.h> |
38 | #include <net/if_arp.h> | 30 | #include <net/if_arp.h> |
39 | #include <netinet/in.h> | 31 | #include <netinet/in.h> |
@@ -329,7 +321,7 @@ int ifconfig_main(int argc, char **argv) | |||
329 | } | 321 | } |
330 | 322 | ||
331 | /* Create a channel to the NET kernel. */ | 323 | /* Create a channel to the NET kernel. */ |
332 | sockfd = bb_xsocket(AF_INET, SOCK_DGRAM, 0); | 324 | sockfd = xsocket(AF_INET, SOCK_DGRAM, 0); |
333 | 325 | ||
334 | /* get interface name */ | 326 | /* get interface name */ |
335 | safe_strncpy(ifr.ifr_name, *argv, IFNAMSIZ); | 327 | safe_strncpy(ifr.ifr_name, *argv, IFNAMSIZ); |