diff options
author | Ondrej Filip <feela@network.cz> | 2000-02-08 19:12:42 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-02-08 19:12:42 +0000 |
commit | c7b915d68c9475ba3a23c99ec7f796ec0a53978b (patch) | |
tree | 2c67d3a26473f5a3ad679747b1712577e268cc1b | |
parent | 9a4037d40891321a2f091cb1f1003bb1ee725136 (diff) |
Malloc() changed to cfg_alloc().
-rw-r--r-- | proto/ospf/ospf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index e8704a7f..1805ac3f 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; |