Unneeded cast removed
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jun 2002 13:12:55 +0000 (13:12 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jun 2002 13:12:55 +0000 (13:12 +0000)
crypto/asn1/a_enum.c
crypto/asn1/a_int.c

index 4124ec07dfe3b467c3d22430b02e0227bcd63f23..105717128b3e54aab57a25f970b20d682f9d91c9 100644 (file)
@@ -208,7 +208,7 @@ ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
        if (ret->length < len+4)
                {
                unsigned char *new_data=
-                       (unsigned char *)OPENSSL_realloc(ret->data, len+4);
+                       OPENSSL_realloc(ret->data, len+4);
                if (!new_data)
                        {
                        ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE);
index b051a1939232715e3a26889b729d678b52eeaef8..0a24bef68504b38e4da96669ae641411af451ebb 100644 (file)
@@ -453,8 +453,7 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai)
        len=((j == 0)?0:((j/8)+1));
        if (ret->length < len+4)
                {
-               unsigned char *new_data=
-                       (unsigned 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);