summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-14 09:40:06 +0000
committerphk <phk@FreeBSD.org>1995-11-14 09:40:06 +0000
commitdf7c5ad2a50a233a76c4b8232562ec001f66db47 (patch)
treecdb1e0211f80341b84fd079d932424518a6593b5 /sys/gnu
parentec15d167b93830b4bbc352d10aa778c20986468e (diff)
downloadFreeBSD-src-df7c5ad2a50a233a76c4b8232562ec001f66db47.zip
FreeBSD-src-df7c5ad2a50a233a76c4b8232562ec001f66db47.tar.gz
Get rid of the last debug sysctl variables of the old style.
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_alloc.c2
-rw-r--r--sys/gnu/ext2fs/ext2_vnops.c4
-rw-r--r--sys/gnu/fs/ext2fs/ext2_alloc.c2
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vnops.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/sys/gnu/ext2fs/ext2_alloc.c b/sys/gnu/ext2fs/ext2_alloc.c
index 0805cab..e14aeb4 100644
--- a/sys/gnu/ext2fs/ext2_alloc.c
+++ b/sys/gnu/ext2fs/ext2_alloc.c
@@ -209,7 +209,7 @@ nospace:
#include <sys/sysctl.h>
static int doasyncfree = 1;
#ifdef OPT_DEBUG
-struct ctldebug debug14 = { "doasyncfree", &doasyncfree };
+SYSCTL_INT(_debug, 14, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, "");
#endif /* OPT_DEBUG */
int
ext2_reallocblks(ap)
diff --git a/sys/gnu/ext2fs/ext2_vnops.c b/sys/gnu/ext2fs/ext2_vnops.c
index 589c5cb..a103388 100644
--- a/sys/gnu/ext2fs/ext2_vnops.c
+++ b/sys/gnu/ext2fs/ext2_vnops.c
@@ -242,9 +242,9 @@ struct vnodeopv_desc ext2fs_fifoop_opv_desc =
#ifdef DEBUG
#include <sys/sysctl.h>
int doclusterread = 1;
-struct ctldebug debug11 = { "doclusterread", &doclusterread };
+SYSCTL_INT(_debug, 11, doclusterread, CTLFLAG_RW, &doclusterread, 0, "");
int doclusterwrite = 1;
-struct ctldebug debug12 = { "doclusterwrite", &doclusterwrite };
+SYSCTL_INT(_debug, 12, doclusterwrite, CTLFLAG_RW, &doclusterwrite, 0, "");
#endif
#if defined(__FreeBSD__)
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c
index 0805cab..e14aeb4 100644
--- a/sys/gnu/fs/ext2fs/ext2_alloc.c
+++ b/sys/gnu/fs/ext2fs/ext2_alloc.c
@@ -209,7 +209,7 @@ nospace:
#include <sys/sysctl.h>
static int doasyncfree = 1;
#ifdef OPT_DEBUG
-struct ctldebug debug14 = { "doasyncfree", &doasyncfree };
+SYSCTL_INT(_debug, 14, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, "");
#endif /* OPT_DEBUG */
int
ext2_reallocblks(ap)
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c
index 589c5cb..a103388 100644
--- a/sys/gnu/fs/ext2fs/ext2_vnops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vnops.c
@@ -242,9 +242,9 @@ struct vnodeopv_desc ext2fs_fifoop_opv_desc =
#ifdef DEBUG
#include <sys/sysctl.h>
int doclusterread = 1;
-struct ctldebug debug11 = { "doclusterread", &doclusterread };
+SYSCTL_INT(_debug, 11, doclusterread, CTLFLAG_RW, &doclusterread, 0, "");
int doclusterwrite = 1;
-struct ctldebug debug12 = { "doclusterwrite", &doclusterwrite };
+SYSCTL_INT(_debug, 12, doclusterwrite, CTLFLAG_RW, &doclusterwrite, 0, "");
#endif
#if defined(__FreeBSD__)
OpenPOWER on IntegriCloud