From 89c312691e6b0fb9de80294d59e205dff1835d09 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 29 Jul 2004 07:30:38 +0000 Subject: additional typecasts to please MIPSPro on 64bit IRIX --- lib/sendf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sendf.c') diff --git a/lib/sendf.c b/lib/sendf.c index b1b33a8fc..84e44688f 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -247,7 +247,7 @@ CURLcode Curl_write(struct connectdata *conn, char error_buffer[120]; /* OpenSSL documents that this must be at least 120 bytes long. */ unsigned long sslerror; - int rc = SSL_write(conn->ssl[num].handle, mem, len); + int rc = SSL_write(conn->ssl[num].handle, mem, (int)len); if(rc < 0) { err = SSL_get_error(conn->ssl[num].handle, rc); @@ -383,11 +383,11 @@ int Curl_read(struct connectdata *conn, /* connection data */ *n=0; /* reset amount to zero */ if (conn->ssl[num].use) { - nread = SSL_read(conn->ssl[num].handle, buf, buffersize); + nread = (ssize_t)SSL_read(conn->ssl[num].handle, buf, (int)buffersize); if(nread < 0) { /* failed SSL_read */ - int err = SSL_get_error(conn->ssl[num].handle, nread); + int err = SSL_get_error(conn->ssl[num].handle, (int)nread); switch(err) { case SSL_ERROR_NONE: /* this is not an error */ -- cgit v1.2.3