From 7be80f55ba516aa285c598fe965b469cebd89c6a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 31 Mar 2003 06:25:42 +0000 Subject: [PATCH] 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. --- sys/kern/uipc_syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index bbd29921d3a0..3354697910c3 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);