diff options
author | Rob Landley | 2006-05-29 06:43:55 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-29 06:43:55 +0000 |
commit | a6e131dab39ee67522687a56b39ed815b9ae15ec (patch) | |
tree | 1ca2de8c070d79096f6db1a4a614d00a0ef7800d /networking/nameif.c | |
parent | bba7f08d2788bc9bc30a7a60fdfd873a73fead9a (diff) | |
download | busybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.zip busybox-a6e131dab39ee67522687a56b39ed815b9ae15ec.tar.gz |
Size reductions, mostly switching things to use libbb functions.
Diffstat (limited to 'networking/nameif.c')
-rw-r--r-- | networking/nameif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index 8590a98..7dc48ec 100644 --- a/networking/nameif.c +++ b/networking/nameif.c @@ -105,7 +105,7 @@ int nameif_main(int argc, char **argv) if (strlen(*a) > IF_NAMESIZE) serror("interface name `%s' too long", *a); - ch = xcalloc(1, sizeof(mactable_t)); + ch = xzalloc(sizeof(mactable_t)); ch->ifname = bb_xstrdup(*a++); ch->mac = cc_macaddr(*a++); if (clist) @@ -126,7 +126,7 @@ int nameif_main(int argc, char **argv) continue; } name_length = strcspn(line_ptr, " \t"); - ch = xcalloc(1, sizeof(mactable_t)); + ch = xzalloc(sizeof(mactable_t)); ch->ifname = bb_xstrndup(line_ptr, name_length); if (name_length > IF_NAMESIZE) serror("interface name `%s' too long", ch->ifname); |