From 393deb9bd663361e6b110d579a8b1d4c22667068 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 18 Aug 2008 14:13:29 -0700 Subject: [cleanup] Convert XMALLOC/memset to XCALLOC Simple conversion of XMALLOC/memset to XCALLOC --- ospfclient/ospf_apiclient.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ospfclient') diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index 64b83123..ed7ca947 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -259,8 +259,7 @@ ospf_apiclient_connect (char *host, int syncport) close (async_server_sock); /* Create new client-side instance */ - new = XMALLOC (MTYPE_OSPF_APICLIENT, sizeof (struct ospf_apiclient)); - memset (new, 0, sizeof (struct ospf_apiclient)); + new = XCALLOC (MTYPE_OSPF_APICLIENT, sizeof (struct ospf_apiclient)); /* Initialize socket descriptors for sync and async channels */ new->fd_sync = fd1; -- cgit v1.2.1