Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tip Add explicit continue to empty loop body.



details:   https://anonhg.NetBSD.org/src/rev/f65fa3e0c407
branches:  trunk
changeset: 777593:f65fa3e0c407
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 24 16:03:39 2012 +0000

description:
Add explicit continue to empty loop body.

diffstat:

 usr.bin/tip/cmds.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 482f1794928e -r f65fa3e0c407 usr.bin/tip/cmds.c
--- a/usr.bin/tip/cmds.c        Fri Feb 24 14:02:55 2012 +0000
+++ b/usr.bin/tip/cmds.c        Fri Feb 24 16:03:39 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmds.c,v 1.34 2012/02/23 23:39:19 joerg Exp $  */
+/*     $NetBSD: cmds.c,v 1.35 2012/02/24 16:03:39 joerg Exp $  */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c     8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: cmds.c,v 1.34 2012/02/23 23:39:19 joerg Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.35 2012/02/24 16:03:39 joerg Exp $");
 #endif /* not lint */
 
 #include "tip.h"
@@ -888,7 +888,7 @@
        l = read(pivec[0], xname, BUFSIZ);
        (void)close(pivec[0]);
        while (wait(&s) != mypid)
-               ;
+               continue;
        s &= 0377;
        if (s != 0 && s != SIGPIPE) {
                (void)fprintf(stderr, "\"Echo\" failed\n");



Home | Main Index | Thread Index | Old Index