diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-18 14:13:29 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-18 14:13:29 -0700 |
commit | aa990a9f58b5f46da95eb360049577a8833d649e (patch) | |
tree | faeff19a39b9c1df101fe381920e52178011e99a /ospfd/ospfd.c | |
parent | e5d63369e1f3fdc1c22ae15fe477de1f97022703 (diff) | |
download | quagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.bz2 quagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.xz |
Use XCALLOC
Replace calls to XMALLOC followed by memset with XCALLOC.
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r-- | ospfd/ospfd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 448f218e..d352a056 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -1385,9 +1385,8 @@ ospf_nbr_nbma_new (void) { struct ospf_nbr_nbma *nbr_nbma; - nbr_nbma = XMALLOC (MTYPE_OSPF_NEIGHBOR_STATIC, + nbr_nbma = XCALLOC (MTYPE_OSPF_NEIGHBOR_STATIC, sizeof (struct ospf_nbr_nbma)); - memset (nbr_nbma, 0, sizeof (struct ospf_nbr_nbma)); nbr_nbma->priority = OSPF_NEIGHBOR_PRIORITY_DEFAULT; nbr_nbma->v_poll = OSPF_POLL_INTERVAL_DEFAULT; |