remove malloc casts
[openssl.git] / engines / e_cswift.c
index db94bf2a64ab9af32e2292d3085f5a0c503ea93e..adab4d41886224702eefafe29e4aebf8874b1c44 100644 (file)
@@ -586,7 +586,7 @@ int cswift_bn_32copy(SW_LARGENUMBER *out, const BIGNUM *in)
     while (((out->nbytes = (numbytes + mod)) % 32)) {
         mod++;
     }
-    out->value = (unsigned char *)OPENSSL_malloc(out->nbytes);
+    out->value = OPENSSL_malloc(out->nbytes);
     if (!out->value) {
         return 0;
     }