Module Name: src Committed By: rillig Date: Tue Apr 27 16:25:47 UTC 2021
Modified Files: src/usr.bin/make: job.c Log Message: make: use consistent variable names, types and braces in DebugFailedJob No functional change. To generate a diff of this commit: cvs rdiff -u -r1.431 -r1.432 src/usr.bin/make/job.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/job.c diff -u src/usr.bin/make/job.c:1.431 src/usr.bin/make/job.c:1.432 --- src/usr.bin/make/job.c:1.431 Tue Apr 27 16:23:21 2021 +++ src/usr.bin/make/job.c Tue Apr 27 16:25:46 2021 @@ -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