1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

made Curl_read_plain() return an 'int' instead of CURLcode since it actually

returns -1 in EAGAIN cases and that's not valid CURLcode
This commit is contained in:
Daniel Stenberg 2008-09-29 11:13:37 +00:00
parent 31626d4c6f
commit aff5408633
2 changed files with 5 additions and 5 deletions

View File

@ -534,7 +534,7 @@ CURLcode Curl_client_write(struct connectdata *conn,
return CURLE_OK;
}
CURLcode Curl_read_plain(curl_socket_t sockfd,
int Curl_read_plain(curl_socket_t sockfd,
char *buf,
size_t bytesfromsocket,
ssize_t *n)

View File

@ -59,10 +59,10 @@ void Curl_read_rewind(struct connectdata *conn,
size_t extraBytesRead);
/* internal read-function, does plain socket only */
CURLcode Curl_read_plain(curl_socket_t sockfd,
char *buf,
size_t bytesfromsocket,
ssize_t *n);
int Curl_read_plain(curl_socket_t sockfd,
char *buf,
size_t bytesfromsocket,
ssize_t *n);
/* internal read-function, does plain socket, SSL and krb4 */
int Curl_read(struct connectdata *conn, curl_socket_t sockfd,