aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
committerYang Tse <yangsita@gmail.com>2010-02-02 16:25:07 +0000
commitd1717e7c9079a5f2b6291fa1fefe95d1348f8cc5 (patch)
tree708af8d09980a0bb3bd6d00a7a6406232dcf1607 /lib/telnet.c
parente569ff959fb5be62e47eec38fec7d97014bf785f (diff)
Fix compiler warning: conditional expression is constant
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index f2af18311..335bfe03b 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -1325,7 +1325,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
switch(waitret) {
case WAIT_TIMEOUT:
{
- while(1) {
+ for(;;) {
if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
keepon = FALSE;
code = CURLE_READ_ERROR;