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



details:   https://anonhg.NetBSD.org/src/rev/264a4d073a03
branches:  trunk
changeset: 946465:264a4d073a03
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 28 16:34:13 2020 +0000

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

diffstat:

 usr.bin/make/parse.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 0ad255a0df97 -r 264a4d073a03 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sat Nov 28 16:31:34 2020 +0000
+++ b/usr.bin/make/parse.c      Sat Nov 28 16:34:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.452 2020/11/28 10:05:49 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.453 2020/11/28 16:34:13 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.452 2020/11/28 10:05:49 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.453 2020/11/28 16:34:13 rillig Exp $");
 
 /* types and constants */
 
@@ -727,8 +727,8 @@
 ParseMessage(const char *directive)
 {
     const char *p = directive;
-    int mtype = *p == 'i' ? PARSE_INFO :
-               *p == 'w' ? PARSE_WARNING : PARSE_FATAL;
+    ParseErrorLevel mtype = *p == 'i' ? PARSE_INFO :
+                           *p == 'w' ? PARSE_WARNING : PARSE_FATAL;
     char *arg;
 
     while (ch_isalpha(*p))



Home | Main Index | Thread Index | Old Index