summaryrefslogtreecommitdiff
path: root/isisd/isisd.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-09-01 17:52:33 +0000
committerhasso <hasso>2005-09-01 17:52:33 +0000
commitaac372f4f5b617a579dafeab31fb486a5d69d65d (patch)
tree9aac3362db19f195238b8508761e82f2d6b8a370 /isisd/isisd.c
parentdeba35508e28a3861bb182218bb51af6769b2581 (diff)
* isis_adjacency.c, isis_lsp.c, isisd.c: Replace XMALLOC && memset
with XCALLOC. * isis_lsp.c (lsp_build_pseudo): Fix adding ES neighbour. * isis_tlv.c: More compact free_tlvs() function. * isis_lsp.c (lsp_build_nonpseudo) : Try to fix one more regression introduced by stream cleanup. Seek enp to the right place before starting to fill stream with TLVs.
Diffstat (limited to 'isisd/isisd.c')
-rw-r--r--isisd/isisd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 5ab1f272..e6679cf3 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -65,8 +65,7 @@ extern struct thread_master *master;
void
isis_new (unsigned long process_id)
{
- isis = XMALLOC (MTYPE_ISIS, sizeof (struct isis));
- bzero (isis, sizeof (struct isis));
+ isis = XCALLOC (MTYPE_ISIS, sizeof (struct isis));
/*
* Default values
*/
@@ -91,8 +90,7 @@ isis_area_create ()
{
struct isis_area *area;
- area = XMALLOC (MTYPE_ISIS_AREA, sizeof (struct isis_area));
- memset (area, 0, sizeof (struct isis_area));
+ area = XCALLOC (MTYPE_ISIS_AREA, sizeof (struct isis_area));
/*
* The first instance is level-1-2 rest are level-1, unless otherwise