diff options
author | lteo <> | 2015-01-02 04:00:21 +0000 |
---|---|---|
committer | lteo <> | 2015-01-02 04:00:21 +0000 |
commit | 04c1c36e9304be2ceb0530845924e77a3ea14ba8 (patch) | |
tree | 378f6054044e03bfe6e7efd2a7a06ba2360705fb | |
parent | 0b6ac712e3883cbf07cc2bb16dc77d0f10493bb1 (diff) | |
download | openbsd-04c1c36e9304be2ceb0530845924e77a3ea14ba8.tar.gz openbsd-04c1c36e9304be2ceb0530845924e77a3ea14ba8.tar.bz2 openbsd-04c1c36e9304be2ceb0530845924e77a3ea14ba8.zip |
Remove ifdef statements for TIMES and USE_TOD; they don't do anything,
apart from introducing a bug where the -elapsed option is not listed in
the usage output when it should be.
feedback/ok bcook@ jsing@
-rw-r--r-- | src/usr.bin/openssl/speed.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index ccaef15f68..b9eca831ff 100644 --- a/src/usr.bin/openssl/speed.c +++ b/src/usr.bin/openssl/speed.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: speed.c,v 1.2 2014/10/22 13:54:03 jsing Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.3 2015/01/02 04:00:21 lteo Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -480,9 +480,7 @@ speed_main(int argc, char **argv) | |||
480 | int multi = 0; | 480 | int multi = 0; |
481 | const char *errstr = NULL; | 481 | const char *errstr = NULL; |
482 | 482 | ||
483 | #ifndef TIMES | ||
484 | usertime = -1; | 483 | usertime = -1; |
485 | #endif | ||
486 | 484 | ||
487 | memset(results, 0, sizeof(results)); | 485 | memset(results, 0, sizeof(results)); |
488 | memset(dsa_key, 0, sizeof(dsa_key)); | 486 | memset(dsa_key, 0, sizeof(dsa_key)); |
@@ -958,9 +956,7 @@ speed_main(int argc, char **argv) | |||
958 | 956 | ||
959 | BIO_printf(bio_err, "\n"); | 957 | BIO_printf(bio_err, "\n"); |
960 | BIO_printf(bio_err, "Available options:\n"); | 958 | BIO_printf(bio_err, "Available options:\n"); |
961 | #if defined(TIMES) || defined(USE_TOD) | ||
962 | BIO_printf(bio_err, "-elapsed measure time in real time instead of CPU user time.\n"); | 959 | BIO_printf(bio_err, "-elapsed measure time in real time instead of CPU user time.\n"); |
963 | #endif | ||
964 | #ifndef OPENSSL_NO_ENGINE | 960 | #ifndef OPENSSL_NO_ENGINE |
965 | BIO_printf(bio_err, "-engine e use engine e, possibly a hardware device.\n"); | 961 | BIO_printf(bio_err, "-engine e use engine e, possibly a hardware device.\n"); |
966 | #endif | 962 | #endif |