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): rename local variable in UpdateTargets



details:   https://anonhg.NetBSD.org/src/rev/96b64ec5c8c7
branches:  trunk
changeset: 957261:96b64ec5c8c7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 22 18:13:52 2020 +0000

description:
make(1): rename local variable in UpdateTargets

diffstat:

 usr.bin/make/suff.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 18dc20af7a50 -r 96b64ec5c8c7 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Sun Nov 22 17:20:15 2020 +0000
+++ b/usr.bin/make/suff.c       Sun Nov 22 18:13:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.298 2020/11/22 17:20:15 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.299 2020/11/22 18:13:52 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.298 2020/11/22 17:20:15 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.299 2020/11/22 18:13:52 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -751,11 +751,12 @@
 static void
 UpdateTargets(GNode **inout_main, Suffix *suff)
 {
-    Boolean r = FALSE;
+    Boolean removedMain = FALSE;
     GNodeListNode *ln;
+
     for (ln = Targ_List()->first; ln != NULL; ln = ln->next) {
        GNode *gn = ln->datum;
-       if (UpdateTarget(gn, inout_main, suff, &r))
+       if (UpdateTarget(gn, inout_main, suff, &removedMain))
            break;
     }
 }



Home | Main Index | Thread Index | Old Index