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/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index f59b6f9..d45d132 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c
@@ -114,8 +114,7 @@ { struct ospf6 *o; - o = XMALLOC (MTYPE_OSPF6_TOP, sizeof (struct ospf6)); - memset (o, 0, sizeof (struct ospf6)); + o = XCALLOC (MTYPE_OSPF6_TOP, sizeof (struct ospf6)); /* initialize */ gettimeofday (&o->starttime, (struct timezone *) NULL);