patch-2.4.1 linux/net/decnet/dn_rules.c

Next file: linux/net/decnet/dn_table.c
Previous file: linux/net/decnet/dn_route.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0/linux/net/decnet/dn_rules.c linux/net/decnet/dn_rules.c
@@ -57,7 +57,12 @@
 	int			r_dead;
 };
 
-static struct dn_fib_rule default_rule = { NULL, ATOMIC_INIT(2), 0x7fff, DN_DEFAULT_TABLE, RTN_UNICAST };
+static struct dn_fib_rule default_rule = {
+	r_clntref:		ATOMIC_INIT(2),
+	r_preference:		0x7fff,
+	r_table:		DN_DEFAULT_TABLE,
+	r_action:		RTN_UNICAST
+};
 
 static struct dn_fib_rule *dn_fib_rules = &default_rule;
 static rwlock_t dn_fib_rules_lock = RW_LOCK_UNLOCKED;
@@ -291,9 +296,7 @@
 
 
 static struct notifier_block dn_fib_rules_notifier = {
-	dn_fib_rules_event,
-	NULL,
-	0
+	notifier_call:		dn_fib_rules_event,
 };
 
 #ifdef CONFIG_RTNETLINK

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)