diff options
author | neel <neel@FreeBSD.org> | 2013-01-04 19:28:32 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-01-04 19:28:32 +0000 |
commit | 38ad3ee53626ccab6f22009b0723f2fb7903ecc1 (patch) | |
tree | 9981bd6a02de01af545d4aff19c0afbef003cfe5 /sys/kern/kern_mib.c | |
parent | 736fc919674c3c284d5611e7e9b572385c4dbc0e (diff) | |
parent | 661fe3468922dc71771a1f31a3562d73f41c4374 (diff) | |
download | FreeBSD-src-38ad3ee53626ccab6f22009b0723f2fb7903ecc1.zip FreeBSD-src-38ad3ee53626ccab6f22009b0723f2fb7903ecc1.tar.gz |
IFC @ r244983.
Diffstat (limited to 'sys/kern/kern_mib.c')
-rw-r--r-- | sys/kern/kern_mib.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index b0bc5c8..29864a8 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -377,15 +377,8 @@ SYSCTL_PROC(_kern, KERN_SECURELVL, securelevel, /* Actual kernel configuration options. */ extern char kernconfstring[]; -static int -sysctl_kern_config(SYSCTL_HANDLER_ARGS) -{ - return (sysctl_handle_string(oidp, kernconfstring, - strlen(kernconfstring), req)); -} - -SYSCTL_PROC(_kern, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RW, - 0, 0, sysctl_kern_config, "", "Kernel configuration file"); +SYSCTL_STRING(_kern, OID_AUTO, conftxt, CTLFLAG_RD, kernconfstring, 0, + "Kernel configuration file"); #endif static int |