Fix warning in apps/ca.c
authorDr. Stephen Henson <steve@openssl.org>
Sun, 14 Jan 2001 13:58:49 +0000 (13:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 14 Jan 2001 13:58:49 +0000 (13:58 +0000)
apps/ca.c

index 2ac0db74d6708326e65e08af742842b8bacef15b..2cf1697642853f00211b21560e592d265fadd5d7 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2448,7 +2448,7 @@ err:
 
 static int get_certificate_status(const char *serial, TXT_DB *db)
        {
-       unsigned char *row[DB_NUMBER],**rrow;
+       char *row[DB_NUMBER],**rrow;
        int ok=-1,i;
 
        /* Free Resources */
@@ -2481,7 +2481,7 @@ static int get_certificate_status(const char *serial, TXT_DB *db)
                        
        /* Make it Upper Case */
        for (i=0; row[DB_serial][i] != '\0'; i++)
-               row[DB_serial][i] = toupper(row[DB_serial][i]);
+               row[DB_serial][i] = toupper((unsigned char)row[DB_serial][i]);
 
        ok=1;