summaryrefslogtreecommitdiff
path: root/sysdep/linux/netlink
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-04 11:40:05 +0000
committerMartin Mares <mj@ucw.cz>1999-03-04 11:40:05 +0000
commitf81dc8564ae6c17638d7e3970b9980d0d00fc78a (patch)
tree4c1f65331dd35e6b8b5e5790aa8e44bb93d7fffa /sysdep/linux/netlink
parent8fe48f1377c8b501e9b090748b195c62f5b582d2 (diff)
Converted some mb_alloc/bzero pairs to mb_allocz.
Diffstat (limited to 'sysdep/linux/netlink')
-rw-r--r--sysdep/linux/netlink/netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index c196efba..539686e0 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -419,8 +419,7 @@ krt_temp_iface(struct krt_proto *p, unsigned index)
WALK_LIST(i, p->scan.temp_ifs)
if (i->index == index)
return i;
- i = mb_alloc(p->p.pool, sizeof(struct iface));
- bzero(i, sizeof(*i));
+ i = mb_allocz(p->p.pool, sizeof(struct iface));
if (j = if_find_by_index(index))
strcpy(i->name, j->name);
else