summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-09 13:28:10 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-09 13:28:10 -0800
commitcb5851ac951e46d0800dc0c342f86458b2ae2485 (patch)
treedba7f2c4dc2b919619c780b4a935f2dd328f4d27 /ospf6d/ospf6_interface.c
parent1330a02df4e0eaa9bdfb8ab841e5dd2130132093 (diff)
downloadquagga-cb5851ac951e46d0800dc0c342f86458b2ae2485.tar.bz2
quagga-cb5851ac951e46d0800dc0c342f86458b2ae2485.tar.xz
Convert XMALLOC/memset to XCALLOC
Simple conversion of XMALLOC/memset to XCALLOC
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index d266f78e..5a79862f 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -96,11 +96,9 @@ ospf6_interface_create (struct interface *ifp)
unsigned int iobuflen;
oi = (struct ospf6_interface *)
- XMALLOC (MTYPE_OSPF6_IF, sizeof (struct ospf6_interface));
+ XCALLOC (MTYPE_OSPF6_IF, sizeof (struct ospf6_interface));
- if (oi)
- memset (oi, 0, sizeof (struct ospf6_interface));
- else
+ if (!oi)
{
zlog_err ("Can't malloc ospf6_interface for ifindex %d", ifp->ifindex);
return (struct ospf6_interface *) NULL;