summaryrefslogtreecommitdiff
path: root/usr.bin/config
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-06-16 02:01:10 +0000
committerchristos <christos@NetBSD.org>2017-06-16 02:01:10 +0000
commited1b50f5c883246ba816dcdbdeed879d9cc46f52 (patch)
treec6c3520e3883e8133cd1ec69c328ced383a19082 /usr.bin/config
parente6b5389d8ed0c63a038060a2be7009a595a3eeb1 (diff)
un-c99
Diffstat (limited to 'usr.bin/config')
-rw-r--r--usr.bin/config/mkmakefile.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/config/mkmakefile.c b/usr.bin/config/mkmakefile.c
index 180ae03c4aa..eebc5086b4b 100644
--- a/usr.bin/config/mkmakefile.c
+++ b/usr.bin/config/mkmakefile.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mkmakefile.c,v 1.69 2017/06/15 23:52:15 christos Exp $ */
+/* $NetBSD: mkmakefile.c,v 1.70 2017/06/16 02:01:10 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mkmakefile.c,v 1.69 2017/06/15 23:52:15 christos Exp $");
+__RCSID("$NetBSD: mkmakefile.c,v 1.70 2017/06/16 02:01:10 christos Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -214,15 +214,14 @@ mkmakefile(void)
static void
emitmkoption(FILE *fp, const char *ass, const struct nvlist *nv)
{
+ const char *p;
fprintf(fp, "%s%s", nv->nv_name, ass);
-
- for (const char *p = nv->nv_str; *p; p++) {
+ for (p = nv->nv_str; *p; p++) {
if (*p == '\n')
fputs(" \\", fp);
fputc(*p, fp);
}
-
fputc('\n', fp);
}