aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 07:01:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 07:01:33 +0000
commitdcf5e52b62c816e4a760d5cb169ac0d36e40cc9f (patch)
treee9372ddce8f052f281143e1ff9bb9e8ea4a96485
parentaae521d08646881a6299524a1bd367ec69fa00df (diff)
ERR_error_string() returns an unsigned long so we should use one of those
for the return code
-rw-r--r--lib/sendf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 896e42c68..69366f29e 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -238,7 +238,7 @@ CURLcode Curl_write(struct connectdata *conn,
int err;
char error_buffer[120]; /* OpenSSL documents that this must be at least
120 bytes long. */
- int sslerror;
+ unsigned long sslerror;
int rc = SSL_write(conn->ssl[num].handle, mem, len);
if(rc < 0) {
@@ -394,7 +394,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
{
char error_buffer[120]; /* OpenSSL documents that this must be at
least 120 bytes long. */
- int sslerror = ERR_get_error();
+ unsigned long sslerror = ERR_get_error();
failf(conn->data, "SSL read: %s, errno %d",
ERR_error_string(sslerror, error_buffer),
Curl_ourerrno() );