From c7b915d68c9475ba3a23c99ec7f796ec0a53978b Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 8 Feb 2000 19:12:42 +0000 Subject: Malloc() changed to cfg_alloc(). --- proto/ospf/ospf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index e8704a7..1805ac3 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -18,7 +18,7 @@ ospf_start(struct proto *p) /* Create graph of LSA's */ po->areano=1; /* FIXME should respect config! */ - po->firstarea=(struct ospf_area *)malloc(sizeof(struct ospf_area)); + po->firstarea=(struct ospf_area *)cfg_alloc(sizeof(struct ospf_area)); po->firstarea->gr=ospf_top_new(po); po->firstarea->next=NULL; po->firstarea->areaid=0; -- cgit v1.2.3