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

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

Advertisement

Kernel v2.4.1 /net/unix/sysctl_net_unix.c

Filename:/net/unix/sysctl_net_unix.c
Lines Added:7
Lines Deleted:15
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.21-rc2  2.4.21-rc3  2.4.21-rc4  2.4.21-rc5  2.4.21-rc6  2.4.21-rc7 

Location
[  2.4.1
  [  net
    [  unix
       o  sysctl_net_unix.c

Patch

diff -u --recursive --new-file v2.4.0/linux/net/unix/sysctl_net_unix.c linux/net/unix/sysctl_net_unix.c
--- v2.4.0/linux/net/unix/sysctl_net_unix.c   Mon Oct 16 12:42:54 2000
+++ linux/net/unix/sysctl_net_unix.c   Wed Jan 24 15:28:36 2001
@@ -1,10 +1,8 @@
 /*
- * NET3:   Sysctl interface to net af_unix subsystem.
+ * NET4:   Sysctl interface to net af_unix subsystem.
  *
  * Authors:   Mike Shaver.
  *
- *      Added /proc/sys/net/unix directory entry (empty =) ).
- *
  *      This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
  *      as published by the Free Software Foundation; either version
@@ -13,9 +11,6 @@
 
 #include <linux/mm.h>
 #include <linux/sysctl.h>
-#include <linux/config.h>
-
-#ifdef CONFIG_SYSCTL
 
 extern int sysctl_unix_max_dgram_qlen;
 
@@ -26,20 +21,18 @@
    {0}
 };
 
-static struct ctl_table_header * unix_sysctl_header;
-static struct ctl_table unix_root_table[];
-static struct ctl_table unix_net_table[];
-
-ctl_table unix_root_table[] = {
-   {CTL_NET, "net", NULL, 0, 0555, unix_net_table},
+static ctl_table unix_net_table[] = {
+   {NET_UNIX, "unix", NULL, 0, 0555, unix_table},
    {0}
 };
 
-ctl_table unix_net_table[] = {
-   {NET_UNIX, "unix", NULL, 0, 0555, unix_table},
+static ctl_table unix_root_table[] = {
+   {CTL_NET, "net", NULL, 0, 0555, unix_net_table},
    {0}
 };
 
+static struct ctl_table_header * unix_sysctl_header;
+
 void unix_sysctl_register(void)
 {
    unix_sysctl_header = register_sysctl_table(unix_root_table, 0);
@@ -50,4 +43,3 @@
    unregister_sysctl_table(unix_sysctl_header);
 }
 
-#endif   /* CONFIG_SYSCTL */


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