aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sendf.c2
-rw-r--r--lib/sendf.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 79d34de60..fc9af912b 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -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)
diff --git a/lib/sendf.h b/lib/sendf.h
index 71ad6febd..a1e60a88f 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -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,