From b5be708ea57ace47e086066d85f9c39df816d834 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 11 Sep 2015 09:38:30 +0000 Subject: remove stupid casts --- src/usr.bin/openssl/speed.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index 4248c09d8e..935d9556e7 100644 --- a/src/usr.bin/openssl/speed.c +++ b/src/usr.bin/openssl/speed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: speed.c,v 1.9 2015/08/22 16:36:05 jsing Exp $ */ +/* $OpenBSD: speed.c,v 1.10 2015/09/11 09:38:30 deraadt Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -153,7 +153,7 @@ #include "./testdsa.h" #include "./testrsa.h" -#define BUFSIZE ((long)1024*8+1) +#define BUFSIZE (1024*8+1) int run = 0; static int mr = 0; @@ -485,11 +485,11 @@ speed_main(int argc, char **argv) for (i = 0; i < RSA_NUM; i++) rsa_key[i] = NULL; - if ((buf = malloc((int) BUFSIZE)) == NULL) { + if ((buf = malloc(BUFSIZE)) == NULL) { BIO_printf(bio_err, "out of memory\n"); goto end; } - if ((buf2 = malloc((int) BUFSIZE)) == NULL) { + if ((buf2 = malloc(BUFSIZE)) == NULL) { BIO_printf(bio_err, "out of memory\n"); goto end; } -- cgit v1.2.3-55-g6feb