aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-09-29 11:13:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-09-29 11:13:37 +0000
commitaff5408633230a7442553889c8e93f05900b8465 (patch)
tree494fb7ac3b2c97b58477ef9dc4645ce331da3acd /lib/sendf.c
parent31626d4c6f97cfb1d23ec3348ddaa040ebd3bb70 (diff)
made Curl_read_plain() return an 'int' instead of CURLcode since it actually
returns -1 in EAGAIN cases and that's not valid CURLcode
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c2
1 files changed, 1 insertions, 1 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)