diff options
author | alc <alc@FreeBSD.org> | 2003-03-31 06:25:42 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-03-31 06:25:42 +0000 |
commit | 3333da28bf8f9ccb4cc00e42f81b623feedca4c0 (patch) | |
tree | 82f6b78003759bc77185f10a9ee4cb8e6b78dd75 /sys | |
parent | 3a712624d5b9d9b3d425135f96f96e633eb6437c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 6 |
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); |