Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Appease the compiler gods; yes I know what I am...
details: https://anonhg.NetBSD.org/src/rev/e129b516330b
branches: trunk
changeset: 831550:e129b516330b
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 05 16:31:54 2018 +0000
description:
Appease the compiler gods; yes I know what I am doing adding to a literal
string.
diffstat:
usr.bin/make/parse.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r d01579b7e770 -r e129b516330b usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Thu Apr 05 15:04:29 2018 +0000
+++ b/usr.bin/make/parse.c Thu Apr 05 16:31:54 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.228 2018/04/05 00:31:10 christos Exp $ */
+/* $NetBSD: parse.c,v 1.229 2018/04/05 16:31:54 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.228 2018/04/05 00:31:10 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.229 2018/04/05 16:31:54 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.228 2018/04/05 00:31:10 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.229 2018/04/05 16:31:54 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -2521,7 +2521,7 @@
static const size_t inclen = sizeof(inc) - 1;
// 'd' is not valid for sysv
- int o = strchr("ds-" + sysv, *line) != NULL;
+ int o = strchr(&("ds-"[sysv]), *line) != NULL;
if (strncmp(line + o, inc, inclen) != 0)
return FALSE;
Home |
Main Index |
Thread Index |
Old Index