From 284076982de7529585c4c13a663203588bff8b12 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Sat, 1 May 2021 14:35:21 +0200 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/15111) --- test/ecstresstest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ecstresstest.c') 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; -- cgit v1.2.3