summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-10-19 19:48:09 +0000
committerrillig <rillig@NetBSD.org>2020-10-19 19:48:09 +0000
commit0417daec2f24711bbee485768e34e1eaadd7bd08 (patch)
tree51ce3a2308d435ca1529204589526016fc42d09d /usr.bin/make
parente475b00d9306f0ff346ad60fb111e46beb5246a2 (diff)
make(1): inline MakeTimeStamp in Make_OODate
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/make.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c
index 523dbc42296..35be1e64c04 100644
--- a/usr.bin/make/make.c
+++ b/usr.bin/make/make.c
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.162 2020/10/19 19:45:50 rillig Exp $ */
+/* $NetBSD: make.c,v 1.163 2020/10/19 19:48:09 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -107,7 +107,7 @@
#include "job.h"
/* "@(#)make.c 8.1 (Berkeley) 6/6/93" */
-MAKE_RCSID("$NetBSD: make.c,v 1.162 2020/10/19 19:45:50 rillig Exp $");
+MAKE_RCSID("$NetBSD: make.c,v 1.163 2020/10/19 19:48:09 rillig Exp $");
/* Sequence # to detect recursion. */
static unsigned int checked = 1;
@@ -192,12 +192,6 @@ Make_TimeStamp(GNode *pgn, GNode *cgn)
}
}
-static void
-MakeTimeStamp(void *pgn, void *cgn)
-{
- Make_TimeStamp(pgn, cgn);
-}
-
/* See if the node is out of date with respect to its sources.
*
* Used by Make_Run when deciding which nodes to place on the
@@ -335,7 +329,9 @@ Make_OODate(GNode *gn)
* thinking they're out-of-date.
*/
if (!oodate) {
- Lst_ForEach(gn->parents, MakeTimeStamp, gn);
+ GNodeListNode *ln;
+ for (ln = gn->parents->first; ln != NULL; ln = ln->next)
+ Make_TimeStamp(ln->datum, gn);
}
return oodate;