lkml.org 
[lkml]   [2004]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] net/unix/: make some code static
The patch below makes some needlessly global code static.


diffstat output:
net/unix/af_unix.c | 2 +-
net/unix/sysctl_net_unix.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/net/unix/af_unix.c.old 2004-12-12 19:36:21.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/net/unix/af_unix.c 2004-12-12 19:36:32.000000000 +0100
@@ -121,7 +121,7 @@

int sysctl_unix_max_dgram_qlen = 10;

-kmem_cache_t *unix_sk_cachep;
+static kmem_cache_t *unix_sk_cachep;

struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
rwlock_t unix_table_lock = RW_LOCK_UNLOCKED;
--- linux-2.6.10-rc2-mm4-full/net/unix/sysctl_net_unix.c.old 2004-12-12 19:37:08.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/net/unix/sysctl_net_unix.c 2004-12-12 19:37:17.000000000 +0100
@@ -14,7 +14,7 @@

extern int sysctl_unix_max_dgram_qlen;

-ctl_table unix_table[] = {
+static ctl_table unix_table[] = {
{
.ctl_name = NET_UNIX_MAX_DGRAM_QLEN,
.procname = "max_dgram_qlen",
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.024 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site