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.
This commit is contained in:
atatat 2004-04-09 18:13:36 +00:00
parent c235249183
commit 9b2972c08e
2 changed files with 7 additions and 7 deletions

View File

@ -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 USERCONF
#
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

View File

@ -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_dump(const struct sysctlnode *);
void sysctl_free(struct sysctlnode *);
void sysctl_teardown(struct sysctllog **);
#if SYSCTL_NO_DESCR
#define SYSCTL_DESCR(s) NULL
#else /* SYSCTL_NO_DESCR */
#if SYSCTL_USE_DESCR
#define SYSCTL_DESCR(s) s
#endif /* SYSCTL_NO_DESCR */
#else /* SYSCTL_USE_DESCR */
#define SYSCTL_DESCR(s) NULL
#endif /* SYSCTL_USE_DESCR */
/*
* simple interface similar to old interface for in-kernel consumption