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)