summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_neighbor.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-18 14:13:29 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-18 14:13:29 -0700
commitaa990a9f58b5f46da95eb360049577a8833d649e (patch)
treefaeff19a39b9c1df101fe381920e52178011e99a /ospfd/ospf_neighbor.c
parente5d63369e1f3fdc1c22ae15fe477de1f97022703 (diff)
downloadquagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.bz2
quagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.xz
Use XCALLOC
Replace calls to XMALLOC followed by memset with XCALLOC.
Diffstat (limited to 'ospfd/ospf_neighbor.c')
-rw-r--r--ospfd/ospf_neighbor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfd/ospf_neighbor.c b/ospfd/ospf_neighbor.c
index 843e93f6..967ca15d 100644
--- a/ospfd/ospf_neighbor.c
+++ b/ospfd/ospf_neighbor.c
@@ -69,8 +69,7 @@ ospf_nbr_new (struct ospf_interface *oi)
struct ospf_neighbor *nbr;
/* Allcate new neighbor. */
- nbr = XMALLOC (MTYPE_OSPF_NEIGHBOR, sizeof (struct ospf_neighbor));
- memset (nbr, 0, sizeof (struct ospf_neighbor));
+ nbr = XCALLOC (MTYPE_OSPF_NEIGHBOR, sizeof (struct ospf_neighbor));
/* Relate neighbor to the interface. */
nbr->oi = oi;