Staticized.

Use OID_AUTO instead of a magic number for the debug.syncprt sysctl.
(This sysctl doesn't actually work.  FreeBSD nuked it, but parts
of it were mismerged from Lite2.  It is not very good, but better
than nothing.)
This commit is contained in:
Bruce Evans 1997-11-22 06:41:21 +00:00
parent 19352b8532
commit 865737f450
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31349
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
* $Id: vfs_syscalls.c,v 1.82 1997/11/13 00:28:50 julian Exp $
* $Id: vfs_syscalls.c,v 1.83 1997/11/22 06:10:36 bde Exp $
*/
/*
@ -464,8 +464,8 @@ struct sync_args {
#endif
#ifdef DEBUG
int syncprt = 0;
SYSCTL_INT(_debug, 0, syncprt, CTLFLAG_RW, &syncprt, 0, "");
static int syncprt = 0;
SYSCTL_INT(_debug, OID_AUTO, syncprt, CTLFLAG_RW, &syncprt, 0, "");
#endif
/* ARGSUSED */

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
* $Id: vfs_syscalls.c,v 1.82 1997/11/13 00:28:50 julian Exp $
* $Id: vfs_syscalls.c,v 1.83 1997/11/22 06:10:36 bde Exp $
*/
/*
@ -464,8 +464,8 @@ struct sync_args {
#endif
#ifdef DEBUG
int syncprt = 0;
SYSCTL_INT(_debug, 0, syncprt, CTLFLAG_RW, &syncprt, 0, "");
static int syncprt = 0;
SYSCTL_INT(_debug, OID_AUTO, syncprt, CTLFLAG_RW, &syncprt, 0, "");
#endif
/* ARGSUSED */