summaryrefslogtreecommitdiff
path: root/lib/sendf.h
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.h
parent31626d4c6f97cfb1d23ec3348ddaa040ebd3bb70 (diff)
downloadcurl-aff5408633230a7442553889c8e93f05900b8465.tar.gz
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.h')
-rw-r--r--lib/sendf.h8
1 files changed, 4 insertions, 4 deletions
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,