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 (instead i'll work out why d...
details: https://anonhg.NetBSD.org/src/rev/f94d7c88ac31
branches: trunk
changeset: 518305:f94d7c88ac31
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Nov 28 03:23:35 2001 +0000
description:
revert previous (instead i'll work out why defflag isn't DTRT with Nxxx)
diffstat:
usr.sbin/config/mkheaders.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 61e333919332 -r f94d7c88ac31 usr.sbin/config/mkheaders.c
--- a/usr.sbin/config/mkheaders.c Wed Nov 28 03:16:06 2001 +0000
+++ b/usr.sbin/config/mkheaders.c Wed Nov 28 03:23:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkheaders.c,v 1.27 2001/11/28 02:47:42 lukem Exp $ */
+/* $NetBSD: mkheaders.c,v 1.28 2001/11/28 03:23:35 lukem Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -160,6 +160,8 @@
char tfname[BUFSIZ];
struct nvlist *nv, *option;
int isfsoption;
+ int isparam;
+ int isflag;
FILE *fp;
(void)sprintf(tfname, "tmp_%s", name);
@@ -168,6 +170,8 @@
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) {
@@ -184,6 +188,9 @@
if (fputc('\n', fp) < 0)
goto bad;
}
+ if (isflag)
+ fprintcnt(fp, nv);
+
}
if (fclose(fp) == EOF)
Home |
Main Index |
Thread Index |
Old Index