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/gtls.h | |
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/gtls.h')
-rw-r--r-- | lib/gtls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gtls.h b/lib/gtls.h index 2632b9686..4e7025c89 100644 --- a/lib/gtls.h +++ b/lib/gtls.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -32,8 +32,8 @@ void Curl_gtls_close_all(struct SessionHandle *data); void Curl_gtls_close(struct connectdata *conn); /* close a SSL connection */ /* return number of sent (non-SSL) bytes */ -int Curl_gtls_send(struct connectdata *conn, int sockindex, - void *mem, size_t len); +ssize_t Curl_gtls_send(struct connectdata *conn, int sockindex, + void *mem, size_t len); ssize_t Curl_gtls_recv(struct connectdata *conn, /* connection data */ int num, /* socketindex */ char *buf, /* store read data here */ |