summaryrefslogtreecommitdiffstats
path: root/apps/s_time.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-04-21 13:08:21 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-04-24 18:54:32 +0200
commitd830526c711074fdcd82c70c24c31444366a1ed8 (patch)
treeb0b29b721564c2b5a25765f5fd33902c46122588 /apps/s_time.c
parent1ae33400bf6559fa9ca9aa2232120dbc7ddc19b8 (diff)
APPS: Improve diagnostics for string options and options expecting int >= 0
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14970)
Diffstat (limited to 'apps/s_time.c')
-rw-r--r--apps/s_time.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/s_time.c b/apps/s_time.c
index 6988bcec55..bda61176e3 100644
--- a/apps/s_time.c
+++ b/apps/s_time.c
@@ -154,8 +154,7 @@ int s_time_main(int argc, char **argv)
perform = 1;
break;
case OPT_VERIFY:
- if (!opt_int(opt_arg(), &verify_args.depth))
- goto opthelp;
+ verify_args.depth = opt_int_arg();
BIO_printf(bio_err, "%s: verify depth is %d\n",
prog, verify_args.depth);
break;
@@ -197,8 +196,7 @@ int s_time_main(int argc, char **argv)
st_bugs = 1;
break;
case OPT_TIME:
- if (!opt_int(opt_arg(), &maxtime))
- goto opthelp;
+ maxtime = opt_int_arg();
break;
case OPT_WWW:
www_path = opt_arg();