summaryrefslogtreecommitdiff
path: root/ripd/rip_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripd/rip_peer.c')
-rw-r--r--ripd/rip_peer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ripd/rip_peer.c b/ripd/rip_peer.c
index e0617890..fd912eba 100644
--- a/ripd/rip_peer.c
+++ b/ripd/rip_peer.c
@@ -36,11 +36,7 @@ struct list *peer_list;
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