summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-02-08 20:12:42 +0100
committerOndrej Filip <feela@network.cz>2000-02-08 20:12:42 +0100
commitc7b915d68c9475ba3a23c99ec7f796ec0a53978b (patch)
tree2c67d3a26473f5a3ad679747b1712577e268cc1b /proto/ospf/ospf.c
parent9a4037d40891321a2f091cb1f1003bb1ee725136 (diff)
downloadbird-c7b915d68c9475ba3a23c99ec7f796ec0a53978b.tar
bird-c7b915d68c9475ba3a23c99ec7f796ec0a53978b.zip
Malloc() changed to cfg_alloc().
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c2
1 files changed, 1 insertions, 1 deletions
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;