From f81dc8564ae6c17638d7e3970b9980d0d00fc78a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 4 Mar 1999 11:40:05 +0000 Subject: Converted some mb_alloc/bzero pairs to mb_allocz. --- sysdep/linux/krt-scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sysdep/linux/krt-scan.c') diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c index 3e5a240..4660682 100644 --- a/sysdep/linux/krt-scan.c +++ b/sysdep/linux/krt-scan.c @@ -33,8 +33,7 @@ krt_temp_iface(struct krt_proto *p, char *name) WALK_LIST(i, p->scan.temp_ifs) if (!strcmp(i->name, name)) return i; - i = mb_alloc(p->p.pool, sizeof(struct iface)); - bzero(i, sizeof(*i)); + i = mb_allocz(p->p.pool, sizeof(struct iface)); strcpy(i->name, name); add_tail(&p->scan.temp_ifs, &i->n); return i; -- cgit v1.2.3