diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-09 13:28:10 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-09 13:28:10 -0800 |
commit | cb5851ac951e46d0800dc0c342f86458b2ae2485 (patch) | |
tree | dba7f2c4dc2b919619c780b4a935f2dd328f4d27 /zebra/irdp_interface.c | |
parent | 1330a02df4e0eaa9bdfb8ab841e5dd2130132093 (diff) | |
download | quagga-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.c | 5 |
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 |