diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-11-11 21:34:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-11-11 21:34:43 +0000 |
commit | be0d17e812053bddd99e1d330c429399f17aee44 (patch) | |
tree | 25b3d65394744f2ed95760237d8bc4207f575c20 /lib/sslgen.c | |
parent | 4eb35406f4b37ba0df35e3ff1cad6e851102204e (diff) |
cleaned up Curl_write() and the sub functions it uses for various protocols.
They all now return ssize_t to Curl_write().
Unfortunately, Curl_read() is in a sorrier state but it too would benefit from
a similar cleanup.
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r-- | lib/sslgen.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c index 7d264b0de..1e0248448 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -455,10 +455,10 @@ struct curl_slist *Curl_ssl_engines_list(struct SessionHandle *data) } /* return number of sent (non-SSL) bytes */ -int Curl_ssl_send(struct connectdata *conn, - int sockindex, - void *mem, - size_t len) +ssize_t Curl_ssl_send(struct connectdata *conn, + int sockindex, + void *mem, + size_t len) { #ifdef USE_SSLEAY return Curl_ossl_send(conn, sockindex, mem, len); @@ -481,10 +481,10 @@ int Curl_ssl_send(struct connectdata *conn, * If the read would block (EWOULDBLOCK) we return -1. Otherwise we return * a regular CURLcode value. */ -int Curl_ssl_recv(struct connectdata *conn, /* connection data */ - int sockindex, /* socketindex */ - char *mem, /* store read data here */ - size_t len) /* max amount to read */ +ssize_t Curl_ssl_recv(struct connectdata *conn, /* connection data */ + int sockindex, /* socketindex */ + char *mem, /* store read data here */ + size_t len) /* max amount to read */ { #ifdef USE_SSL ssize_t nread; |