Skip to contentSkip to conversation

net/unix/: make some code static

PATCH Applied Adrian Bunk 2 participants 2 messages Dec 12, 2004 – Dec 28, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(-)
net/unix/af_unix.c renamed from net/unix/af_unix.c.old +1 -1
@@ -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;
net/unix/sysctl_net_unix.c renamed from net/unix/sysctl_net_unix.c.old +1 -1
@@ -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",
maintainer Applied
#1 lore raw
Quoted 1 line · On Sun, 12 Dec 2004 22:20:22 +0100 Adrian Bunk <[email protected]> wrote:

The patch below makes some needlessly global code static.

Applied, thanks Adrian.