diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-14 23:14:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-14 23:14:59 +0000 |
commit | 4931fbce49887f7d4022c39ea7d94c4294b5f479 (patch) | |
tree | de5a20a6d1624ad07fe7509e10900773160d711b /lib/sendf.h | |
parent | fefc7ea6008c48cbc3c346da4da55169da8c3adc (diff) | |
download | curl-4931fbce49887f7d4022c39ea7d94c4294b5f479.tar.gz |
Curl_read() now returns a negative return code if EWOULDBLOCK or similar
Diffstat (limited to 'lib/sendf.h')
-rw-r--r-- | lib/sendf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sendf.h b/lib/sendf.h index b23191416..7b6cff7de 100644 --- a/lib/sendf.h +++ b/lib/sendf.h @@ -45,9 +45,9 @@ CURLcode Curl_client_write(struct SessionHandle *data, int type, char *ptr, size_t len); /* internal read-function, does plain socket, SSL and krb4 */ -CURLcode Curl_read(struct connectdata *conn, int sockfd, - char *buf, size_t buffersize, - ssize_t *n); +int Curl_read(struct connectdata *conn, int sockfd, + char *buf, size_t buffersize, + ssize_t *n); /* internal write-function, does plain socket, SSL and krb4 */ CURLcode Curl_write(struct connectdata *conn, int sockfd, void *mem, size_t len, |