aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-15 13:48:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-15 13:48:50 +0000
commit0612c275a7f788e81dd0930aab0bd6b92e58d6de (patch)
treefcfcb76f5ad73b5203e5c301a0fa2b69a3c76298 /lib/telnet.c
parentf3d91528a156d0530e6590e4987ffc45414f908f (diff)
(void) functions we don't check the return code for
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 9bf2365d8..2faffb225 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1117,7 +1117,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
!= SOCKET_ERROR) {
if(events.lNetworkEvents & FD_READ) {
/* This reallu OUGHT to check its return code. */
- Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
+ (void)Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
telrcv(conn, (unsigned char *)buf, nread);
@@ -1181,7 +1181,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
if(FD_ISSET(sockfd, &readfd)) {
/* This OUGHT to check the return code... */
- Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
+ (void)Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
/* if we receive 0 or less here, the server closed the connection and
we bail out from this! */