Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /net/decnet/dn_timer.c

Filename:/net/decnet/dn_timer.c
Lines Added:4
Lines Deleted:4
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.0-ac12  2.4.0-ac11  2.4.0-ac10 
(Following) 2.5.42  2.5.67-bk10  2.5.68  2.5.70-bk12  2.5.70-bk13  2.5.70-bk14 

Location
[  2.4.1
  [  net
    [  decnet
       o  dn_timer.c

Patch

diff -u --recursive --new-file v2.4.0/linux/net/decnet/dn_timer.c linux/net/decnet/dn_timer.c
--- v2.4.0/linux/net/decnet/dn_timer.c   Wed May  3 01:48:03 2000
+++ linux/net/decnet/dn_timer.c   Mon Jan 22 13:32:10 2001
@@ -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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.