aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-29 07:30:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-29 07:30:38 +0000
commit89c312691e6b0fb9de80294d59e205dff1835d09 (patch)
treea69bc54d64078155b5a36425ac5e05f07cf96c10 /lib
parent1d23affbc5bf0e38b7e11469f6f0378d0410d730 (diff)
additional typecasts to please MIPSPro on 64bit IRIX
Diffstat (limited to 'lib')
-rw-r--r--lib/sendf.c6
1 files changed, 3 insertions, 3 deletions
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 */