Btrfs-progs: return 1 rather than 129 in usage()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 4 Sep 2013 15:22:18 +0000 (23:22 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:03 +0000 (08:20 -0400)
if usage or syntax error happens, we return 1.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
help.c

diff --git a/help.c b/help.c
index d429a6b..09dc706 100644 (file)
--- a/help.c
+++ b/help.c
@@ -121,7 +121,7 @@ void usage_command(const struct cmd_struct *cmd, int full, int err)
 void usage(const char * const *usagestr)
 {
        usage_command_usagestr(usagestr, NULL, 1, 1);
-       exit(129);
+       exit(1);
 }
 
 static void usage_command_group_internal(const struct cmd_group *grp, int full,