summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-09-04 23:22:18 +0800
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:20:03 -0400
commitc1e23b2aa526dee6810a3ce3aada71871bfe205c (patch)
tree38c04b470d842cb19f3dbb71943ab294123818bb /help.c
parent36dcac288e7ccdebb2b442d695656d81639d048c (diff)
Btrfs-progs: return 1 rather than 129 in usage()
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>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index d429a6b..09dc706 100644
--- 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,