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/ripd/rip_peer.c b/ripd/rip_peer.c index e061789..fd912eb 100644 --- a/ripd/rip_peer.c +++ b/ripd/rip_peer.c
@@ -36,11 +36,7 @@ static struct rip_peer * rip_peer_new (void) { - struct rip_peer *new; - - new = XMALLOC (MTYPE_RIP_PEER, sizeof (struct rip_peer)); - memset (new, 0, sizeof (struct rip_peer)); - return new; + return XCALLOC (MTYPE_RIP_PEER, sizeof (struct rip_peer)); } static void