diff options
| author | Hartmut Brandt <harti@FreeBSD.org> | 2005-03-16 16:02:09 +0000 |
|---|---|---|
| committer | Hartmut Brandt <harti@FreeBSD.org> | 2005-03-16 16:02:09 +0000 |
| commit | 0bcbcabd26ca97bfb426e5e56f90a867ee3a7793 (patch) | |
| tree | 1fc067323f2fa8d745c13013ddcb9276914e127b /usr.bin/make/compat.c | |
| parent | a2384179091907dcdb9682c4371a7e52ced3d85f (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/compat.c')
| -rw-r--r-- | usr.bin/make/compat.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index a60f331ffaf70..2ab841622c492 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; |
