zdump: opts: declare print_usage_exit in header file

Remove `static` attribute from `print_usage_exit` and declare it in the header
file `opts.h`. The function will be reused in a later patch.

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2022-10-10 16:32:35 +00:00
committed by Jan Höppner
parent a6f2c38891
commit bd18166a21
2 changed files with 2 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ static void init_defaults(struct options *opts)
/*
* Print "help" hint
*/
static void __noreturn print_usage_exit(const char *prog_name)
void __noreturn print_usage_exit(const char *prog_name)
{
STDERR("Try '%s --help' for more information.\n", prog_name);
zg_exit(1);

View File

@@ -36,5 +36,6 @@ extern const char *OPTS_SELECT_PROD;
extern const char *OPTS_SELECT_ALL;
void opts_parse(int argc, char *argv[], struct options *opts);
void __noreturn print_usage_exit(const char *prog_name);
#endif /* OPTS_H */