From d1717e7c9079a5f2b6291fa1fefe95d1348f8cc5 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 2 Feb 2010 16:25:07 +0000 Subject: Fix compiler warning: conditional expression is constant --- lib/telnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/telnet.c') 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, , et al. + * Copyright (C) 1998 - 2010, Daniel Stenberg, , 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; -- cgit v1.2.3