diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-01 14:35:21 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-05 20:48:20 +0200 |
commit | 284076982de7529585c4c13a663203588bff8b12 (patch) | |
tree | 07afe26cf4c823f0f20d24b6d95ec32dd5c90820 /test/ecstresstest.c | |
parent | 6c0ac9b99f2b7278a5ec60ef0c29c71e9eb4f40d (diff) |
APPS: Slightly extend and improve documentation of the opt_ API
Also remove redundant opt_name() and make names of opt_{i,u}ntmax() consistent.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15111)
Diffstat (limited to 'test/ecstresstest.c')
-rw-r--r-- | test/ecstresstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ecstresstest.c b/test/ecstresstest.c index 5a831e338a..f6adc4235e 100644 --- a/test/ecstresstest.c +++ b/test/ecstresstest.c @@ -127,7 +127,7 @@ int setup_tests(void) { OPTION_CHOICE o; - if (!opt_imax(NUM_REPEATS, &num_repeats)) { + if (!opt_intmax(NUM_REPEATS, &num_repeats)) { TEST_error("Cannot parse " NUM_REPEATS); return 0; } @@ -135,7 +135,7 @@ int setup_tests(void) while ((o = opt_next()) != OPT_EOF) { switch (o) { case OPT_NUM_REPEATS: - if (!opt_imax(opt_arg(), &num_repeats) + if (!opt_intmax(opt_arg(), &num_repeats) || num_repeats < 0) return 0; print_mode = 1; |