ifquery: use generic_usage() instead of ifquery_usage()

This commit is contained in:
Ariadne Conill 2020-08-11 23:10:35 -06:00
parent f6d9f65248
commit fda7bfae57
5 changed files with 10 additions and 17 deletions

View file

@ -42,8 +42,8 @@ struct if_option_group {
struct if_applet {
const char *name;
const char *desc;
const char *usage;
int (*const main)(int argc, char *argv[]);
void (*const usage)(int status);
const struct if_option_group *groups[16];
};
@ -70,4 +70,6 @@ extern struct if_option_group match_option_group;
extern struct lif_execute_opts exec_opts;
extern struct if_option_group exec_option_group;
void generic_usage(const struct if_applet *applet, int result);
#endif