summaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-29 07:48:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-29 07:48:47 +0000
commit48b92c163f6ae393ad731ef848b232866500f9f5 (patch)
treebd019ac4ba75196dbe1f70bcf92b90a045808168 /lib/telnet.c
parentb7575b39c4bca1d9c9a09bd69b5aabfcf0ebc7d3 (diff)
downloadcurl-48b92c163f6ae393ad731ef848b232866500f9f5.tar.gz
fix a mingw32 build warning
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 472cd8f53..f5381aa74 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1207,10 +1207,11 @@ CURLcode Curl_telnet(struct connectdata *conn)
char *buffer = buf;
for(;;) {
- if(!PeekNamedPipe(stdin_handle,NULL,0,NULL,&nread,NULL)) {
+ if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
keepon = FALSE;
break;
}
+ nread = readfile_read;
if(!nread)
break;