btrfs-progs: fragments: fix build

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-03-22 16:06:31 +01:00
parent 1c36022fe7
commit 90104b2618
1 changed files with 4 additions and 7 deletions

View File

@ -379,8 +379,7 @@ out_close:
return ret;
}
void
usage(void)
void fragments_usage(void)
{
printf("usage: btrfs-fragments [options] <path>\n");
printf(" -c use color\n");
@ -423,15 +422,13 @@ int main(int argc, char **argv)
break;
case 'h':
default:
usage();
fragments_usage();
}
}
set_argv0(argv);
if (check_argc_min(argc - optind, 1)) {
usage();
exit(1);
}
if (check_argc_min(argc - optind, 1))
fragments_usage();
path = argv[optind++];