summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-09-05 14:13:35 +0000
committerBruce Evans <bde@FreeBSD.org>1998-09-05 14:13:35 +0000
commit266ead86bc30664df1796bc8e68408109aef3d2d (patch)
treec9bdf4730a22271df20cc8e898b75a971add7b25
parent0375c9f2b8da45ea302124b97c1eedd91064c49d (diff)
Notes
-rw-r--r--sys/sys/sysctl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 750d1f2488e0..3ea498abb6e5 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)sysctl.h 8.1 (Berkeley) 6/2/93
- * $Id: sysctl.h,v 1.62 1998/08/24 08:39:37 dfr Exp $
+ * $Id: sysctl.h,v 1.63 1998/09/05 12:42:56 bde Exp $
*/
#ifndef _SYS_SYSCTL_H_
@@ -134,16 +134,16 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS;
/* This constructs a "raw" MIB oid. */
#define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
- static const struct sysctl_oid sysctl__##parent##_##name = { \
+ static struct sysctl_oid sysctl__##parent##_##name = { \
nbr, kind, a1, a2, #name, handler, fmt }; \
- TEXT_SET(sysctl_##parent, sysctl__##parent##_##name)
+ DATA_SET(sysctl_##parent, sysctl__##parent##_##name)
/* This constructs a node from which other oids can hang. */
#define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \
extern struct linker_set sysctl_##parent##_##name; \
SYSCTL_OID(parent, nbr, name, CTLTYPE_NODE|access, \
(void*)&sysctl_##parent##_##name, 0, handler, "N", descr); \
- TEXT_SET(sysctl_##parent##_##name, sysctl__##parent##_##name)
+ DATA_SET(sysctl_##parent##_##name, sysctl__##parent##_##name)
/* Oid for a string. len can be 0 to indicate '\0' termination. */
#define SYSCTL_STRING(parent, nbr, name, access, arg, len, descr) \