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

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

diff -u --recursive --new-file v2.4.0/linux/net/decnet/dn_timer.c linux/net/decnet/dn_timer.c
@@ -52,7 +52,7 @@
 static void dn_slow_timer(unsigned long arg)
 {
 	struct sock *sk = (struct sock *)arg;
-	struct dn_scp *scp = &sk->protinfo.dn;
+	struct dn_scp *scp = DN_SK(sk);
 
 	sock_hold(sk);
 	bh_lock_sock(sk);
@@ -112,7 +112,7 @@
 static void dn_fast_timer(unsigned long arg)
 {
 	struct sock *sk = (struct sock *)arg;
-	struct dn_scp *scp = &sk->protinfo.dn;
+	struct dn_scp *scp = DN_SK(sk);
 
 	bh_lock_sock(sk);
 	if (sk->lock.users != 0) {
@@ -131,7 +131,7 @@
 
 void dn_start_fast_timer(struct sock *sk)
 {
-	struct dn_scp *scp = &sk->protinfo.dn;
+	struct dn_scp *scp = DN_SK(sk);
 
 	if (!scp->delack_pending) {
 		scp->delack_pending = 1;
@@ -145,7 +145,7 @@
 
 void dn_stop_fast_timer(struct sock *sk)
 {
-	struct dn_scp *scp = &sk->protinfo.dn;
+	struct dn_scp *scp = DN_SK(sk);
 
 	if (scp->delack_pending) {
 		scp->delack_pending = 0;

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