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(1): fix type of local variable in ParseMod...



details:   https://anonhg.NetBSD.org/src/rev/cc4fde054601
branches:  trunk
changeset: 944272:cc4fde054601
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Sep 25 14:10:09 2020 +0000

description:
make(1): fix type of local variable in ParseModifierPart

Thanks, Clang-Tidy.

diffstat:

 usr.bin/make/var.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ea9ef4ed1be2 -r cc4fde054601 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Fri Sep 25 14:07:12 2020 +0000
+++ b/usr.bin/make/var.c        Fri Sep 25 14:10:09 2020 +0000
@@ -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 @@
             * 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;
 



Home | Main Index | Thread Index | Old Index