diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-17 13:38:07 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-17 13:38:07 +0100 |
commit | 471cc0be651a8db7068a65963ecfd4cc45f97ab1 (patch) | |
tree | 7e6860704058c2aa1688fa28df3c53ae2cab7031 /nest/proto.c | |
parent | d272fe22dddcb5c293d6aac18d36e3e3e66406a5 (diff) | |
download | bird-471cc0be651a8db7068a65963ecfd4cc45f97ab1.tar bird-471cc0be651a8db7068a65963ecfd4cc45f97ab1.zip |
Moved initlialization of protocol lists to global init. Argh.
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nest/proto.c b/nest/proto.c index 4c69227..27e0bc4 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -160,11 +160,6 @@ protos_preconfig(struct config *c) { struct protocol *p; - init_list(&proto_list); - init_list(&active_proto_list); - init_list(&inactive_proto_list); - init_list(&initial_proto_list); - init_list(&flush_proto_list); init_list(&c->protos); debug("Protocol preconfig:"); WALK_LIST(p, protocol_list) @@ -363,6 +358,11 @@ void protos_build(void) { init_list(&protocol_list); + init_list(&proto_list); + init_list(&active_proto_list); + init_list(&inactive_proto_list); + init_list(&initial_proto_list); + init_list(&flush_proto_list); add_tail(&protocol_list, &proto_device.n); #ifdef CONFIG_RIP add_tail(&protocol_list, &proto_rip.n); |