revert previous (instead i'll work out why defflag isn't DTRT with Nxxx)
This commit is contained in:
parent
ae4d025a29
commit
49379a0a84
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue