aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-15 07:48:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-15 07:48:45 +0000
commita357f77c4c19552eb6efa56bfc335c81e7edcce7 (patch)
tree449f6a85c7d5f631c46cfe528e9b207bdb6fc6e8
parentd5bdd2b2f98f22388527e2749ff77b95a03b86c5 (diff)
nonsense change for(;;) => while(1) just to prevent gcc from warning on
never executed code when -Wunreachable-code is used
-rw-r--r--lib/telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index d528615a5..daddfdb6f 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1208,7 +1208,7 @@ CURLcode Curl_telnet(struct connectdata *conn, bool *done)
ssize_t bytes_written;
char *buffer = buf;
- for(;;) {
+ while(1) {
if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
keepon = FALSE;
break;