Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make: fix lint warning about strchr removing 'c...
details: https://anonhg.NetBSD.org/src/rev/ffc271463f18
branches: trunk
changeset: 1022908:ffc271463f18
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 14 13:04:00 2021 +0000
description:
make: fix lint warning about strchr removing 'const'
No functional change.
diffstat:
usr.bin/make/meta.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 1d72bb8f01f4 -r ffc271463f18 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c Sat Aug 14 13:00:55 2021 +0000
+++ b/usr.bin/make/meta.c Sat Aug 14 13:04:00 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.181 2021/04/04 10:05:08 rillig Exp $ */
+/* $NetBSD: meta.c,v 1.182 2021/08/14 13:04:00 rillig Exp $ */
/*
* Implement 'meta' mode.
@@ -321,8 +321,7 @@
static const char *p_make = NULL;
static size_t p_len;
char *mp = NULL;
- char *cp;
- char *cp2;
+ const char *cp, *cp2;
bool rc = false;
if (p_make == NULL) {
Home |
Main Index |
Thread Index |
Old Index