From: Adrian Bunk <bunk@stusta.de>
To: netdev@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: [2.6 patch] net/unix/: make some code static
Date: Sun, 12 Dec 2004 22:20:22 +0100 [thread overview]
Message-ID: <20041212212022.GA22324@stusta.de> (raw)
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",
next reply other threads:[~2004-12-12 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-12 21:20 Adrian Bunk [this message]
2004-12-28 2:58 ` [2.6 patch] net/unix/: make some code static David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041212212022.GA22324@stusta.de \
--to=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).