mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
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:
parent
19352b8532
commit
865737f450
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31349
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user