mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 14:45:19 +00:00
btrfs-progs: find-root: rename usage helper
This would clash with the generic usage from commands.h. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c928522052
commit
e235f12de2
@ -36,7 +36,7 @@
|
||||
#include "extent-cache.h"
|
||||
#include "find-root.h"
|
||||
|
||||
static void usage(void)
|
||||
static void find_root_usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: find-roots [-a] [-o search_objectid] "
|
||||
"[ -g search_generation ] [ -l search_level ] <device>\n");
|
||||
@ -179,14 +179,14 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
case GETOPT_VAL_HELP:
|
||||
default:
|
||||
usage();
|
||||
find_root_usage();
|
||||
exit(c != GETOPT_VAL_HELP);
|
||||
}
|
||||
}
|
||||
|
||||
set_argv0(argv);
|
||||
if (check_argc_min(argc - optind, 1)) {
|
||||
usage();
|
||||
find_root_usage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user