From a6e131dab39ee67522687a56b39ed815b9ae15ec Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 29 May 2006 06:43:55 +0000 Subject: Size reductions, mostly switching things to use libbb functions. --- networking/nameif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/nameif.c') diff --git a/networking/nameif.c b/networking/nameif.c index 8590a98ad..7dc48ec16 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); -- cgit v1.2.3