Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Invert the meaning of SYSCTL_NO_DESCR by calling it SYSC...



details:   https://anonhg.NetBSD.org/src/rev/8517b10270d6
branches:  trunk
changeset: 565456:8517b10270d6
user:      atatat <atatat%NetBSD.org@localhost>
date:      Fri Apr 09 18:13:36 2004 +0000

description:
Invert the meaning of SYSCTL_NO_DESCR by calling it SYSCTL_USE_DESCR
instead.  This makes it an option to include the descriptions, as
opposed to an option to *exclude* them.

diffstat:

 sys/conf/files   |   4 ++--
 sys/sys/sysctl.h |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r 7bac32ad1dcc -r 8517b10270d6 sys/conf/files
--- a/sys/conf/files    Fri Apr 09 17:51:18 2004 +0000
+++ b/sys/conf/files    Fri Apr 09 18:13:36 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.663 2004/04/08 03:43:38 atatat Exp $
+#      $NetBSD: files,v 1.664 2004/04/09 18:13:36 atatat Exp $
 
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
@@ -162,7 +162,7 @@
 #
 defflag opt_sysctl.h           SYSCTL_DISALLOW_CREATE SYSCTL_DISALLOW_KWRITE
                                SYSCTL_DEBUG_SETUP SYSCTL_DEBUG_CREATE
-                               SYSCTL_NO_DESCR
+                               SYSCTL_USE_DESCR
 
 #
 # Not entirely MI, but present on multiple arch's
diff -r 7bac32ad1dcc -r 8517b10270d6 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Fri Apr 09 17:51:18 2004 +0000
+++ b/sys/sys/sysctl.h  Fri Apr 09 18:13:36 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.118 2004/04/09 15:43:19 atatat Exp $      */
+/*     $NetBSD: sysctl.h,v 1.119 2004/04/09 18:13:36 atatat Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -976,11 +976,11 @@
 void   sysctl_free(struct sysctlnode *);
 void   sysctl_teardown(struct sysctllog **);
 
-#if SYSCTL_NO_DESCR
+#if SYSCTL_USE_DESCR
+#define SYSCTL_DESCR(s) s
+#else /* SYSCTL_USE_DESCR */
 #define SYSCTL_DESCR(s) NULL
-#else /* SYSCTL_NO_DESCR */
-#define SYSCTL_DESCR(s) s
-#endif /* SYSCTL_NO_DESCR */
+#endif /* SYSCTL_USE_DESCR */
 
 /*
  * simple interface similar to old interface for in-kernel consumption



Home | Main Index | Thread Index | Old Index