Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make avoid the long shadow of i
details: https://anonhg.NetBSD.org/src/rev/0baa347b50ae
branches: trunk
changeset: 784577:0baa347b50ae
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 02 15:12:25 2013 +0000
description:
avoid the long shadow of i
diffstat:
usr.bin/make/job.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r d7be96f64818 -r 0baa347b50ae usr.bin/make/job.c
--- a/usr.bin/make/job.c Sat Feb 02 15:11:48 2013 +0000
+++ b/usr.bin/make/job.c Sat Feb 02 15:12:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: job.c,v 1.166 2013/02/02 15:11:48 christos Exp $ */
+/* $NetBSD: job.c,v 1.167 2013/02/02 15:12:25 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.166 2013/02/02 15:11:48 christos Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.167 2013/02/02 15:12:25 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: job.c,v 1.166 2013/02/02 15:11:48 christos Exp $");
+__RCSID("$NetBSD: job.c,v 1.167 2013/02/02 15:12:25 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -2050,8 +2050,8 @@
if (nready < 0 || readyfd(&childExitJob)) {
char token = 0;
nready -= 1;
- for (size_t i = 0; i < 5 &&
- read(childExitJob.inPipe, &token, 1) == -1 && errno == EAGAIN; i++)
+ for (size_t n = 0; n < 5 &&
+ read(childExitJob.inPipe, &token, 1) == -1 && errno == EAGAIN; n++)
continue;
if (token == DO_JOB_RESUME[0])
/* Complete relay requested from our SIGCONT handler */
Home |
Main Index |
Thread Index |
Old Index