0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +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;