Module Name: src
Committed By: rillig
Date: Fri Sep 25 14:10:10 UTC 2020
Modified Files:
src/usr.bin/make: var.c
Log Message:
make(1): fix type of local variable in ParseModifierPart
Thanks, Clang-Tidy.
To generate a diff of this commit:
cvs rdiff -u -r1.539 -r1.540 src/usr.bin/make/var.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/var.c
diff -u src/usr.bin/make/var.c:1.539 src/usr.bin/make/var.c:1.540
--- src/usr.bin/make/var.c:1.539 Fri Sep 25 14:07:12 2020
+++ src/usr.bin/make/var.c Fri Sep 25 14:10:09 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.539 2020/09/25 14:07:12 rillig Exp $ */
+/* $NetBSD: var.c,v 1.540 2020/09/25 14:10:09 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.539 2020/09/25 14:07:12 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.540 2020/09/25 14:10:09 rillig Exp $");
#define VAR_DEBUG_IF(cond, fmt, ...) \
if (!(DEBUG(VAR) && (cond))) \
@@ -1920,7 +1920,7 @@ ParseModifierPart(
* and suck it in without further ado.
* It will be interpreted later.
*/
- int have = p[1];
+ char have = p[1];
int want = have == '(' ? ')' : '}';
int depth = 1;