aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-08-30 01:36:01 +0000
committerGunter Knauf <gk@gknw.de>2009-08-30 01:36:01 +0000
commite7f81d59b085c141f64fb14b6a7c60493929e951 (patch)
treef137d7422591d5870966a44a17990598cffaa373
parentf1320d67334c59461e312b1da18e7add2ad33b1e (diff)
add casts to silent compiler warnings with 64bit systems.
-rw-r--r--lib/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 81748306e..bfa4347bf 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -676,7 +676,7 @@ void Curl_gtls_close(struct connectdata *conn, int sockindex)
*/
int Curl_gtls_shutdown(struct connectdata *conn, int sockindex)
{
- int result;
+ ssize_t result;
int retval = 0;
struct SessionHandle *data = conn->data;
int done = 0;
@@ -776,7 +776,7 @@ ssize_t Curl_gtls_recv(struct connectdata *conn, /* connection data */
if(ret < 0) {
failf(conn->data, "GnuTLS recv error (%d): %s",
- (int)ret, gnutls_strerror(ret));
+ (int)ret, gnutls_strerror((int)ret));
return -1;
}