diff options
author | Ondrej Filip <feela@network.cz> | 2000-02-08 20:12:42 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-02-08 20:12:42 +0100 |
commit | c7b915d68c9475ba3a23c99ec7f796ec0a53978b (patch) | |
tree | 2c67d3a26473f5a3ad679747b1712577e268cc1b /proto/ospf | |
parent | 9a4037d40891321a2f091cb1f1003bb1ee725136 (diff) | |
download | bird-c7b915d68c9475ba3a23c99ec7f796ec0a53978b.tar bird-c7b915d68c9475ba3a23c99ec7f796ec0a53978b.zip |
Malloc() changed to cfg_alloc().
Diffstat (limited to 'proto/ospf')
-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 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; |