mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
a6f2c38891
commit
bd18166a21
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user