summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/compat.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-03-16 16:02:09 +0000
committerharti <harti@FreeBSD.org>2005-03-16 16:02:09 +0000
commitdf4f9cb09a9b495d4414f941dd34e968e222b42f (patch)
tree1fc067323f2fa8d745c13013ddcb9276914e127b /usr.bin/make/compat.c
parentcbbd172aea353aba1c2f9a966c3dee5f0151d015 (diff)
downloadFreeBSD-src-df4f9cb09a9b495d4414f941dd34e968e222b42f.zip
FreeBSD-src-df4f9cb09a9b495d4414f941dd34e968e222b42f.tar.gz
Replace Lst_ForEach by LST_FOREACH.
Diffstat (limited to 'usr.bin/make/compat.c')
-rw-r--r--usr.bin/make/compat.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c
index a60f331..2ab8416 100644
--- a/usr.bin/make/compat.c
+++ b/usr.bin/make/compat.c
@@ -451,19 +451,14 @@ Compat_RunCommand(char *cmd, GNode *gn)
* CompatMake --
* Make a target, given the parent, to abort if necessary.
*
- * Results:
- * 0
- *
* Side Effects:
* If an error is detected and not being ignored, the process exits.
*
*-----------------------------------------------------------------------
*/
static int
-CompatMake(void *gnp, void *pgnp)
+CompatMake(GNode *gn, GNode *pgn)
{
- GNode *gn = gnp;
- GNode *pgn = pgnp;
LstNode *ln;
if (gn->type & OP_USE) {
@@ -481,7 +476,8 @@ CompatMake(void *gnp, void *pgnp)
gn->make = TRUE;
gn->made = BEINGMADE;
Suff_FindDeps(gn);
- Lst_ForEach(&gn->children, CompatMake, gn);
+ LST_FOREACH(ln, &gn->children)
+ CompatMake(Lst_Datum(ln), gn);
if (!gn->make) {
gn->made = ABORTED;
pgn->make = FALSE;
OpenPOWER on IntegriCloud