diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-18 23:13:29 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-12 18:07:49 +0200 |
commit | 393deb9bd663361e6b110d579a8b1d4c22667068 (patch) | |
tree | e93ebf2f57bf92ff7a9cd045764b3cdbb99a07e5 /ospfclient | |
parent | [bgpd] Add support for the old Linux 2.4, TCP_MD5_AUTH RFC2385 patch (diff) | |
download | frr-393deb9bd663361e6b110d579a8b1d4c22667068.tar.xz frr-393deb9bd663361e6b110d579a8b1d4c22667068.zip |
[cleanup] Convert XMALLOC/memset to XCALLOC
Simple conversion of XMALLOC/memset to XCALLOC
Diffstat (limited to 'ospfclient')
-rw-r--r-- | ospfclient/ospf_apiclient.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index 64b831231..ed7ca9475 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; |