1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

(void) functions we don't check the return code for

This commit is contained in:
Daniel Stenberg 2004-02-15 13:48:50 +00:00
parent f3d91528a1
commit 0612c275a7

View File

@ -1117,7 +1117,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
!= SOCKET_ERROR) { != SOCKET_ERROR) {
if(events.lNetworkEvents & FD_READ) { if(events.lNetworkEvents & FD_READ) {
/* This reallu OUGHT to check its return code. */ /* 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); telrcv(conn, (unsigned char *)buf, nread);
@ -1181,7 +1181,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
if(FD_ISSET(sockfd, &readfd)) { if(FD_ISSET(sockfd, &readfd)) {
/* This OUGHT to check the return code... */ /* 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 /* if we receive 0 or less here, the server closed the connection and
we bail out from this! */ we bail out from this! */