summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-03-31 06:25:42 +0000
committeralc <alc@FreeBSD.org>2003-03-31 06:25:42 +0000
commit3333da28bf8f9ccb4cc00e42f81b623feedca4c0 (patch)
tree82f6b78003759bc77185f10a9ee4cb8e6b78dd75 /sys/kern
parent3a712624d5b9d9b3d425135f96f96e633eb6437c (diff)
downloadFreeBSD-src-3333da28bf8f9ccb4cc00e42f81b623feedca4c0.zip
FreeBSD-src-3333da28bf8f9ccb4cc00e42f81b623feedca4c0.tar.gz
Recent changes to uipc_cow.c have eliminated the need for some sf_buf-
related variables to be global. Make them either local to sf_buf_init() or static.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index bbd2992..3354697 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -97,9 +97,7 @@ static struct {
struct mtx sf_lock;
} sf_freelist;
-vm_offset_t sf_base;
-struct sf_buf *sf_bufs;
-u_int sf_buf_alloc_want;
+static u_int sf_buf_alloc_want;
/*
* System call interface to the socket abstraction.
@@ -1617,6 +1615,8 @@ getsockaddr(namp, uaddr, len)
static void
sf_buf_init(void *arg)
{
+ struct sf_buf *sf_bufs;
+ vm_offset_t sf_base;
int i;
mtx_init(&sf_freelist.sf_lock, "sf_bufs list lock", NULL, MTX_DEF);
OpenPOWER on IntegriCloud