Module Name: src
Committed By: rillig
Date: Sun Nov 22 18:13:52 UTC 2020
Modified Files:
src/usr.bin/make: suff.c
Log Message:
make(1): rename local variable in UpdateTargets
To generate a diff of this commit:
cvs rdiff -u -r1.298 -r1.299 src/usr.bin/make/suff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/suff.c
diff -u src/usr.bin/make/suff.c:1.298 src/usr.bin/make/suff.c:1.299
--- src/usr.bin/make/suff.c:1.298 Sun Nov 22 17:20:15 2020
+++ src/usr.bin/make/suff.c Sun Nov 22 18:13:52 2020
@@ -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 @@ UpdateTarget(GNode *target, GNode **inou
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;
}
}