From 90104b2618cbfec84633bad000929ddfb2c7ab67 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 22 Mar 2016 16:06:31 +0100 Subject: [PATCH] btrfs-progs: fragments: fix build Signed-off-by: David Sterba --- btrfs-fragments.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/btrfs-fragments.c b/btrfs-fragments.c index 9be3dd3..9db1861 100644 --- a/btrfs-fragments.c +++ b/btrfs-fragments.c @@ -379,8 +379,7 @@ out_close: return ret; } -void -usage(void) +void fragments_usage(void) { printf("usage: btrfs-fragments [options] \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++]; -- 2.7.4