diff options
| author | rillig <rillig@NetBSD.org> | 2021-04-27 16:25:46 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-04-27 16:25:46 +0000 |
| commit | b94bbe6e00f7b4c63c49c5a11f110ecffffb8a8d (patch) | |
| tree | 858a0ce54642bd8feacde0668ed85765841b7380 /usr.bin/make | |
| parent | aafe41db30cbd6510fc0defabcd05eeb42ccf9f8 (diff) | |
make: use consistent variable names, types and braces in DebugFailedJob
No functional change.
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/job.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 047f1dba63e..547ae553d75 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,4 +1,4 @@ -/* $NetBSD: job.c,v 1.431 2021/04/27 16:23:21 rillig Exp $ */ +/* $NetBSD: job.c,v 1.432 2021/04/27 16:25:46 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -142,7 +142,7 @@ #include "trace.h" /* "@(#)job.c 8.2 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: job.c,v 1.431 2021/04/27 16:23:21 rillig Exp $"); +MAKE_RCSID("$NetBSD: job.c,v 1.432 2021/04/27 16:25:46 rillig Exp $"); /* * A shell defines how the commands are run. All commands for a target are @@ -1063,16 +1063,15 @@ JobClosePipes(Job *job) static void DebugFailedJob(const Job *job) { - const ListNode *l; + const StringListNode *ln; if (!DEBUG(ERROR)) return; debug_printf("\n*** Failed target: %s\n*** Failed commands:\n", job->node->name); - for (l = job->node->commands.first; l != NULL; l = l->next) { - debug_printf("\t%s\n", (const char *)l->datum); - } + for (ln = job->node->commands.first; ln != NULL; ln = ln->next) + debug_printf("\t%s\n", (const char *)ln->datum); } static void |
