remove malloc casts
[openssl.git] / apps / dgst.c
index adfa2a63ba969d076611df40a2dcd7355a5f21a3..106e939fbf4e909874f13ba62dcff44af4198429 100644 (file)
@@ -139,7 +139,7 @@ int dgst_main(int argc, char **argv)
     int engine_impl = 0;
 
     prog = opt_progname(argv[0]);
-    if ((buf = (unsigned char *)OPENSSL_malloc(BUFSIZE)) == NULL) {
+    if ((buf = OPENSSL_malloc(BUFSIZE)) == NULL) {
         BIO_printf(bio_err, "%s: out of memory\n", prog);
         goto end;
     }