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/lib/if.c b/lib/if.c index db590f5..de3f641 100644 --- a/lib/if.c +++ b/lib/if.c
@@ -620,9 +620,7 @@ 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. */