Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Don't use a for-loop with empty body.



details:   https://anonhg.NetBSD.org/src/rev/57e7433caa2b
branches:  trunk
changeset: 777569:57e7433caa2b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 23 18:23:33 2012 +0000

description:
Don't use a for-loop with empty body.

diffstat:

 bin/sh/jobs.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6a54883245a9 -r 57e7433caa2b bin/sh/jobs.c
--- a/bin/sh/jobs.c     Thu Feb 23 14:45:54 2012 +0000
+++ b/bin/sh/jobs.c     Thu Feb 23 18:23:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jobs.c,v 1.69 2011/06/18 21:18:46 christos Exp $       */
+/*     $NetBSD: jobs.c,v 1.70 2012/02/23 18:23:33 joerg Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)jobs.c     8.5 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: jobs.c,v 1.69 2011/06/18 21:18:46 christos Exp $");
+__RCSID("$NetBSD: jobs.c,v 1.70 2012/02/23 18:23:33 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -798,7 +798,8 @@
                                jobtab = jp;
                        }
                        jp = jobtab + njobs;
-                       for (i = 4 ; --i >= 0 ; jobtab[njobs++].used = 0);
+                       for (i = 4 ; --i >= 0 ; )
+                               jobtab[njobs++].used = 0;
                        INTON;
                        break;
                }



Home | Main Index | Thread Index | Old Index