summaryrefslogtreecommitdiffstats
path: root/zebra/irdp_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 /zebra/irdp_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 'zebra/irdp_interface.c')
-rw-r--r--zebra/irdp_interface.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c
index dd773402..b3a838b3 100644
--- a/zebra/irdp_interface.c
+++ b/zebra/irdp_interface.c
@@ -175,10 +175,7 @@ if_set_defaults(struct interface *ifp)
struct Adv *Adv_new (void)
{
- struct Adv *new;
- new = XMALLOC (MTYPE_TMP, sizeof (struct Adv));
- memset (new, 0, sizeof (struct Adv));
- return new;
+ return XCALLOC (MTYPE_TMP, sizeof (struct Adv));
}
static void