Fix warnings.
authorBen Laurie <ben@openssl.org>
Fri, 31 May 2002 14:28:30 +0000 (14:28 +0000)
committerBen Laurie <ben@openssl.org>
Fri, 31 May 2002 14:28:30 +0000 (14:28 +0000)
crypto/asn1/a_enum.c
crypto/asn1/a_int.c

index 35232d82b222e2ca4dfcda5f17eccb7f4d5e87e6..ad8f0ffd1ab3859c561d24f291f3428bb1366477 100644 (file)
@@ -153,7 +153,7 @@ ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
        len=((j == 0)?0:((j/8)+1));
        if (ret->length < len+4)
                {
-               char *new_data=(char *)OPENSSL_realloc(ret->data, len+4);
+               unsigned char *new_data=OPENSSL_realloc(ret->data, len+4);
                if (!new_data)
                        {
                        ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);
index 8ae9827f6eaf5464bfb11e64a0c0a3a90685423d..edb243c0217eeb625d3ea738b1cca4bf636e7c66 100644 (file)
@@ -399,7 +399,7 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai)
        len=((j == 0)?0:((j/8)+1));
        if (ret->length < len+4)
                {
-               char *new_data=(char *)OPENSSL_realloc(ret->data, len+4);
+               unsigned char *new_data=OPENSSL_realloc(ret->data, len+4);
                if (!new_data)
                        {
                        ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);