aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /networking/ifconfig.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c10
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);