Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make: use consistent variable names, types and ...
details: https://anonhg.NetBSD.org/src/rev/ab0096f27264
branches: trunk
changeset: 962022:ab0096f27264
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Apr 27 16:25:46 2021 +0000
description:
make: use consistent variable names, types and braces in DebugFailedJob
No functional change.
diffstat:
usr.bin/make/job.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 62e0f702793d -r ab0096f27264 usr.bin/make/job.c
--- a/usr.bin/make/job.c Tue Apr 27 16:23:21 2021 +0000
+++ b/usr.bin/make/job.c Tue Apr 27 16:25:46 2021 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index