ERR_error_string() returns an unsigned long so we should use one of those
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 07:01:33 +0000 (07:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 07:01:33 +0000 (07:01 +0000)
for the return code

lib/sendf.c

index 896e42c..69366f2 100644 (file)
@@ -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() );