summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-18 14:26:02 +0200
committerMartin Mares <mj@ucw.cz>1998-10-18 14:26:02 +0200
commit3629bcf0c7ff8ccc56baabc4769f90635d1a7864 (patch)
tree97bd94e84e4feb1772705f365d6d06bce94e0db6 /nest
parent0432c0173bb4d234e8ba8e4afea0a8e708e119d8 (diff)
downloadbird-3629bcf0c7ff8ccc56baabc4769f90635d1a7864.tar
bird-3629bcf0c7ff8ccc56baabc4769f90635d1a7864.zip
Preconfig, postconfig and init hooks can be NULL.
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 6c0843d..f142a77 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -48,7 +48,8 @@ protos_preconfig(void)
WALK_LIST(p, protocol_list)
{
debug("...%s\n", p->name);
- p->preconfig(p);
+ if (p->preconfig)
+ p->preconfig(p);
}
}
@@ -61,7 +62,8 @@ protos_postconfig(void)
WALK_LIST(p, protocol_list)
{
debug("...%s\n", p->name);
- p->postconfig(p);
+ if (p->postconfig)
+ p->postconfig(p);
}
}
@@ -121,5 +123,6 @@ protos_init(void)
debug("Initializing protocols\n");
WALK_LIST(p, protocol_list)
- p->init(p);
+ if (p->init)
+ p->init(p);
}