Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config un-c99
details: https://anonhg.NetBSD.org/src/rev/f43cc5e2d7ff
branches: trunk
changeset: 824729:f43cc5e2d7ff
user: christos <christos%NetBSD.org@localhost>
date: Fri Jun 16 02:01:10 2017 +0000
description:
un-c99
diffstat:
usr.bin/config/mkmakefile.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 9269ad7fce8a -r f43cc5e2d7ff usr.bin/config/mkmakefile.c
--- a/usr.bin/config/mkmakefile.c Fri Jun 16 00:10:09 2017 +0000
+++ b/usr.bin/config/mkmakefile.c Fri Jun 16 02:01:10 2017 +0000
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index