summaryrefslogtreecommitdiff
path: root/networking/interface.c
diff options
context:
space:
mode:
authorRob Landley2006-05-29 06:43:55 +0000
committerRob Landley2006-05-29 06:43:55 +0000
commita6e131dab39ee67522687a56b39ed815b9ae15ec (patch)
tree1ca2de8c070d79096f6db1a4a614d00a0ef7800d /networking/interface.c
parentbba7f08d2788bc9bc30a7a60fdfd873a73fead9a (diff)
downloadbusybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.zip
busybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.gz
Size reductions, mostly switching things to use libbb functions.
Diffstat (limited to 'networking/interface.c')
-rw-r--r--networking/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c
index 3d399be..260dac0 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -76,7 +76,6 @@
#define _PATH_PROCNET_DEV "/proc/net/dev"
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
-#define new(p) ((p) = xcalloc(1,sizeof(*(p))))
#if HAVE_AFINET6
@@ -789,7 +788,8 @@ static struct interface *add_interface(char *name)
if (n < 0)
break;
}
- new(new);
+
+ new = xzalloc(sizeof(*new));
safe_strncpy(new->name, name, IFNAMSIZ);
nextp = ife ? &ife->next : &int_list;
new->prev = ife;