0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Malloc() changed to cfg_alloc().

This commit is contained in:
Ondrej Filip 2000-02-08 19:12:42 +00:00
parent 9a4037d408
commit c7b915d68c

View File

@ -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;