diff options
author | Rob Landley <rob@landley.net> | 2006-05-29 06:43:55 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-29 06:43:55 +0000 |
commit | a6e131dab39ee67522687a56b39ed815b9ae15ec (patch) | |
tree | 1ca2de8c070d79096f6db1a4a614d00a0ef7800d /networking/interface.c | |
parent | bba7f08d2788bc9bc30a7a60fdfd873a73fead9a (diff) | |
download | busybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.gz |
Size reductions, mostly switching things to use libbb functions.
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index 3d399be71..260dac073 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; |