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 --- lib/if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index db590f56..de3f641d 100644 --- a/lib/if.c +++ b/lib/if.c @@ -620,9 +620,7 @@ DEFUN (show_address, struct connected * connected_new (void) { - struct connected *new = XMALLOC (MTYPE_CONNECTED, sizeof (struct connected)); - memset (new, 0, sizeof (struct connected)); - return new; + return XCALLOC (MTYPE_CONNECTED, sizeof (struct connected)); } /* Free connected structure. */ -- cgit v1.2.3