summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/krt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/krt.c')
-rw-r--r--sysdep/unix/krt.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index aa9a9c4..7c92c55 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -1,7 +1,7 @@
/*
* BIRD -- UNIX Kernel Synchronization
*
- * (c) 1998--1999 Martin Mares <mj@ucw.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -68,6 +68,12 @@ static timer *kif_scan_timer;
static bird_clock_t kif_last_shot;
static void
+kif_preconfig(struct protocol *P, struct config *c)
+{
+ cf_kif = NULL;
+}
+
+static void
kif_scan(timer *t)
{
struct kif_proto *p = t->data;
@@ -137,6 +143,7 @@ kif_shutdown(struct proto *P)
struct protocol proto_unix_iface = {
name: "Device",
priority: 100,
+ preconfig: kif_preconfig,
init: kif_init,
start: kif_start,
shutdown: kif_shutdown,
@@ -646,6 +653,7 @@ struct proto_config *cf_krt;
static void
krt_preconfig(struct protocol *P, struct config *c)
{
+ cf_krt = NULL;
krt_scan_preconfig(c);
}