Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/config revert previous revert previous. now back to...
details: https://anonhg.NetBSD.org/src/rev/936e427cd9e6
branches: trunk
changeset: 518323:936e427cd9e6
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Nov 28 09:02:16 2001 +0000
description:
revert previous revert previous. now back to rev 1.27 behaviour:
- Don't bother emitting "#define NFOO 0" for defflag foo (whether or
not "options FOO" was given); it's really useful as is.
Until I recently started converting stuff from defopt to defflag,
nothing used defflag, and because defopt doesn't provide NFOO for FOO,
the NFOO behaviour shouldn't be missed. The NFOO stuff also added
a lot of #define namespace pollution that we'd rather avoid.
- Remove a couple of unused vars
diffstat:
usr.sbin/config/mkheaders.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r bf433b4f00da -r 936e427cd9e6 usr.sbin/config/mkheaders.c
--- a/usr.sbin/config/mkheaders.c Wed Nov 28 08:49:19 2001 +0000
+++ b/usr.sbin/config/mkheaders.c Wed Nov 28 09:02:16 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkheaders.c,v 1.28 2001/11/28 03:23:35 lukem Exp $ */
+/* $NetBSD: mkheaders.c,v 1.29 2001/11/28 09:02:16 lukem Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -160,8 +160,6 @@
char tfname[BUFSIZ];
struct nvlist *nv, *option;
int isfsoption;
- int isparam;
- int isflag;
FILE *fp;
(void)sprintf(tfname, "tmp_%s", name);
@@ -170,8 +168,6 @@
for (nv = value; nv != NULL; nv = nv->nv_next) {
isfsoption = OPT_FSOPT(nv->nv_name);
- isparam = OPT_DEFPARAM(nv->nv_name);
- isflag = OPT_DEFFLAG(nv->nv_name);
if ((option = ht_lookup(opttab, nv->nv_name)) == NULL &&
(option = ht_lookup(fsopttab, nv->nv_name)) == NULL) {
@@ -188,9 +184,6 @@
if (fputc('\n', fp) < 0)
goto bad;
}
- if (isflag)
- fprintcnt(fp, nv);
-
}
if (fclose(fp) == EOF)
Home |
Main Index |
Thread Index |
Old Index