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

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

Advertisement

Kernel v2.4.1 /net/x25/x25_link.c

Filename:/net/x25/x25_link.c
Lines Added:3
Lines Deleted:9
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.4.5-ac18  2.4.5-ac19  2.4.5-ac20  2.4.5-ac21  2.4.5-ac22  2.4.5-ac23 

Location
[  2.4.1
  [  net
    [  x25
       o  x25_link.c

Patch

diff -u --recursive --new-file v2.4.0/linux/net/x25/x25_link.c linux/net/x25/x25_link.c
--- v2.4.0/linux/net/x25/x25_link.c   Sun Sep 17 10:03:43 2000
+++ linux/net/x25/x25_link.c   Wed Jan 24 15:28:36 2001
@@ -20,8 +20,6 @@
  *   2000-09-04   Henner Eisen     dev_hold() / dev_put() for x25_neigh.
  */
 
-#include <linux/config.h>
-#if defined(CONFIG_X25) || defined(CONFIG_X25_MODULE)
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/socket.h>
@@ -42,9 +40,10 @@
 #include <linux/fcntl.h>
 #include <linux/mm.h>
 #include <linux/interrupt.h>
+#include <linux/init.h>
 #include <net/x25.h>
 
-static struct x25_neigh *x25_neigh_list = NULL;
+static struct x25_neigh *x25_neigh_list /* = NULL initially */;
 
 static void x25_t20timer_expiry(unsigned long);
 
@@ -422,12 +421,11 @@
    return 0;
 }
 
-#ifdef MODULE
 
 /*
  *   Release all memory associated with X.25 neighbour structures.
  */
-void x25_link_free(void)
+void __exit x25_link_free(void)
 {
    struct x25_neigh *neigh, *x25_neigh = x25_neigh_list;
 
@@ -438,7 +436,3 @@
       x25_remove_neigh(neigh);
    }
 }
-
-#endif
-
-#endif


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