summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-04-13 02:24:05 +0200
committerOndrej Filip <feela@network.cz>1999-04-13 02:24:05 +0200
commitcb2e8c49706c14ea662df44cd3911c1f9db4b4a8 (patch)
treef8c97d343e9fd06347faa2605400d4880ebeb3f1
parent5b1a92e6d4350bcecff4f78b9cfabfb98ca7ce2a (diff)
downloadbird-cb2e8c49706c14ea662df44cd3911c1f9db4b4a8.tar
bird-cb2e8c49706c14ea662df44cd3911c1f9db4b4a8.zip
A small init change to avoid core dump.
-rw-r--r--proto/ospf/ospf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index d10df85..a37e2c0 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -129,7 +129,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *new, struct iface
/* Latter I'll use config - this is incorrect */
ospf_iface=mb_alloc(p->pool, sizeof(struct ospf_iface));
ospf_iface->iface=new;
- add_tail(&(c->iface_list), NODE ospf_iface);
+ add_tail(&c->iface_list, NODE ospf_iface);
ospf_iface_default(ospf_iface);
init_list(&(ospf_iface->sk_list));
if(ospf_open_socket(p, ospf_iface)!=NULL)
@@ -166,16 +166,16 @@ ospf_init(struct proto_config *c)
struct proto *p = proto_new(c, sizeof(struct proto));
DBG(" OSPF: Init.\n");
+ init_list(&((struct ospf_config *)c)->iface_list);
p->neigh_notify = NULL;
p->if_notify = NULL;
return p;
}
static void
-ospf_preconfig(struct protocol *x, struct config *c)
+ospf_preconfig(struct protocol *p, struct config *c)
{
DBG( " OSPF: preconfig\n" );
- init_list(&(((struct ospf_config *)c)->iface_list));
}
static void