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 ApplyMod...



details:   https://anonhg.NetBSD.org/src/rev/ea9ef4ed1be2
branches:  trunk
changeset: 944271:ea9ef4ed1be2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Sep 25 14:07:12 2020 +0000

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

Thanks, Clang-Tidy.

diffstat:

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

diffs (27 lines):

diff -r 8c9370be99fe -r ea9ef4ed1be2 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Fri Sep 25 14:00:17 2020 +0000
+++ b/usr.bin/make/var.c        Fri Sep 25 14:07:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.538 2020/09/25 06:06:15 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.539 2020/09/25 14:07:12 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.538 2020/09/25 06:06:15 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.539 2020/09/25 14:07:12 rillig Exp $");
 
 #define VAR_DEBUG_IF(cond, fmt, ...)   \
     if (!(DEBUG(VAR) && (cond)))       \
@@ -3012,7 +3012,7 @@
            const char *nested_p = p;
            void *freeIt;
            const char *rval;
-           int c;
+           char c;
 
            (void)Var_Parse(&nested_p, st.ctxt, st.eflags, &rval, &freeIt);
            /* TODO: handle errors */



Home | Main Index | Thread Index | Old Index