diff options
Diffstat (limited to 'kernel/tty.c')
| -rw-r--r-- | kernel/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/tty.c b/kernel/tty.c index 529d955..a17429f 100644 --- a/kernel/tty.c +++ b/kernel/tty.c @@ -20,7 +20,7 @@ static struct tty_struct *ttys[] = { /* check if a buffer's empty and if so, go to sleep */ static int sleep_while_empty(struct tty_queue *q) { cli(); - while(1) { + for(;;) { if(q->pread == q->pwrite) interruptible_sleep_on(&q->waiting); @@ -38,7 +38,7 @@ static int sleep_while_empty(struct tty_queue *q) { /* check if a buffer's full and if so, go to sleep */ static int sleep_while_full(struct tty_queue *q, struct tty_struct *tty) { cli(); - while(1) { + for(;;) { /* * if the buffer is full, first notify the * driver so it can try to remove some |
