diff options
author | David von Oheimb <David.von.Oheimb@siemens.com> | 2017-12-22 19:50:17 +0100 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-04-24 18:00:24 +0200 |
commit | 51c833ac2d46653c8124a25def4df0b3d1a832b5 (patch) | |
tree | 61019911403990d93aa56c06a53d7e57861d6818 /apps/include/opt.h | |
parent | 9d5aca655323d795ad8c28fa6be47250a08c18c7 (diff) |
Improve feedback on wrong format with new print_format_error() in apps/lib/opt.c
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/4940)
Diffstat (limited to 'apps/include/opt.h')
-rw-r--r-- | apps/include/opt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/include/opt.h b/apps/include/opt.h index 1a26f34649..1bf46215d5 100644 --- a/apps/include/opt.h +++ b/apps/include/opt.h @@ -342,6 +342,7 @@ char *opt_init(int ac, char **av, const OPTIONS * o); int opt_next(void); void opt_begin(void); int opt_format(const char *s, unsigned long flags, int *result); +const char *format2str(int format); int opt_int(const char *arg, int *result); int opt_ulong(const char *arg, unsigned long *result); int opt_long(const char *arg, long *result); @@ -370,6 +371,7 @@ int opt_provider(int i); void opt_help(const OPTIONS * list); void opt_print(const OPTIONS * opt, int doingparams, int width); int opt_format_error(const char *s, unsigned long flags); +void print_format_error(int format, unsigned long flags); int opt_isdir(const char *name); int opt_printf_stderr(const char *fmt, ...); |