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 local variable type in ParseIsEscaped



details:   https://anonhg.NetBSD.org/src/rev/bd6cd7ac0c81
branches:  trunk
changeset: 954515:bd6cd7ac0c81
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Sep 05 15:12:03 2020 +0000

description:
make(1): fix local variable type in ParseIsEscaped

diffstat:

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

diffs (45 lines):

diff -r b4ec4fdc7f40 -r bd6cd7ac0c81 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sat Sep 05 15:05:08 2020 +0000
+++ b/usr.bin/make/parse.c      Sat Sep 05 15:12:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.279 2020/09/05 15:05:08 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.280 2020/09/05 15:12:03 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.279 2020/09/05 15:05:08 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.280 2020/09/05 15:12:03 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.279 2020/09/05 15:05:08 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.280 2020/09/05 15:12:03 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -351,9 +351,6 @@
        Boolean used;                   /* XXX: have we used the data yet */
 };
 
-/*
- * Constructor/destructor for loadedfile
- */
 static struct loadedfile *
 loadedfile_create(const char *path)
 {
@@ -558,7 +555,7 @@
 static Boolean
 ParseIsEscaped(const char *line, const char *c)
 {
-    int active = 0;
+    Boolean active = FALSE;
     for (;;) {
        if (line == c)
            return active;



Home | Main Index | Thread Index | Old Index