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

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

Advertisement

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

Filename:/net/x25/x25_route.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.5.2-pre4  2.5.2-pre5  2.5.2-pre6  2.5.2-pre7  2.5.2-pre8  2.5.2-pre9 

Location
[  2.4.1
  [  net
    [  x25
       o  x25_route.c

Patch

diff -u --recursive --new-file v2.4.0/linux/net/x25/x25_route.c linux/net/x25/x25_route.c
--- v2.4.0/linux/net/x25/x25_route.c   Fri Nov 19 11:33:29 1999
+++ linux/net/x25/x25_route.c   Mon Jan 22 13:32:10 2001
@@ -17,7 +17,6 @@
  */
 
 #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 +41,10 @@
 #include <linux/mm.h>
 #include <linux/interrupt.h>
 #include <linux/notifier.h>
+#include <linux/init.h>
 #include <net/x25.h>
 
-static struct x25_route *x25_route_list = NULL;
+static struct x25_route *x25_route_list /* = NULL initially */;
 
 /*
  *   Add a new route.
@@ -255,12 +255,10 @@
    return len;
 } 
 
-#ifdef MODULE
-
 /*
  *   Release all memory associated with X.25 routing structures.
  */
-void x25_route_free(void)
+void __exit x25_route_free(void)
 {
    struct x25_route *route, *x25_route = x25_route_list;
 
@@ -271,7 +269,3 @@
       x25_remove_route(route);
    }
 }
-
-#endif
-
-#endif


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