From 49379a0a8453e2248cd810d000428df129eff7e7 Mon Sep 17 00:00:00 2001 From: lukem Date: Wed, 28 Nov 2001 03:23:35 +0000 Subject: [PATCH] revert previous (instead i'll work out why defflag isn't DTRT with Nxxx) --- usr.sbin/config/mkheaders.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c index 354ca53b5327..4e104c883ff2 100644 --- a/usr.sbin/config/mkheaders.c +++ b/usr.sbin/config/mkheaders.c @@ -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 @@ defopts_print(const char *name, void *value, void *arg) 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 @@ defopts_print(const char *name, void *value, void *arg) 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 @@ defopts_print(const char *name, void *value, void *arg) if (fputc('\n', fp) < 0) goto bad; } + if (isflag) + fprintcnt(fp, nv); + } if (fclose(fp) == EOF)