aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-21 16:10:38 +0000
committerRoy Marples <roy@marples.name>2008-01-21 16:10:38 +0000
commit2007ed4b95183f5ca70d7981e497b6471757f160 (patch)
treeef1e423b6de599469c6a33de9ddd14dfb64d672a /src/rc
parent07728abbc1eb1aa91d21318f3a3d64b15c2800fe (diff)
Prefer for (;;) over while (1)
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 6af2121c..11432164 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -456,7 +456,7 @@ static bool svc_exec (const char *arg1, const char *arg2)
selfd = MAX (master_tty, signal_pipe[0]) + 1;
buffer = xmalloc (sizeof (char) * BUFSIZ);
- while (1) {
+ for (;;) {
FD_ZERO (&rset);
FD_SET (signal_pipe[0], &rset);
if (master_tty >= 0)