commit | 393deb9bd663361e6b110d579a8b1d4c22667068 | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | Mon Aug 18 14:13:29 2008 -0700 |
committer | Paul Jakma <paul@quagga.net> | Fri Jun 12 17:07:49 2009 +0100 |
tree | e93ebf2f57bf92ff7a9cd045764b3cdbb99a07e5 | |
parent | 3453a7122c1d585ad789ed0f63deb90cc5e89fae [diff] [blame] |
[cleanup] Convert XMALLOC/memset to XCALLOC Simple conversion of XMALLOC/memset to XCALLOC
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c index dd77340..b3a838b 100644 --- a/zebra/irdp_interface.c +++ b/zebra/irdp_interface.c
@@ -175,10 +175,7 @@ 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