Module Name:    src
Committed By:   joerg
Date:           Fri Feb 24 16:03:39 UTC 2012

Modified Files:
        src/usr.bin/tip: cmds.c

Log Message:
Add explicit continue to empty loop body.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/tip/cmds.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/tip/cmds.c
diff -u src/usr.bin/tip/cmds.c:1.34 src/usr.bin/tip/cmds.c:1.35
--- src/usr.bin/tip/cmds.c:1.34	Thu Feb 23 23:39:19 2012
+++ src/usr.bin/tip/cmds.c	Fri Feb 24 16:03:39 2012
@@ -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 @@ expand(char aname[])
 	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");

Reply via email to