From 2d428975f240caf8faa3a5d86e8c6c56e163f6e3 Mon Sep 17 00:00:00 2001 From: Miao Xie Date: Thu, 9 Sep 2010 13:47:32 +0800 Subject: [PATCH] fix wrong return value btrfsctl returns 1 if it does something successfully. this patch fixes this problem. Signed-off-by: Miao Xie --- btrfsctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfsctl.c b/btrfsctl.c index a524e337..92bdf39f 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -260,8 +260,8 @@ int main(int ac, char **av) } printf("%s\n", BTRFS_BUILD_VERSION); if (ret) - exit(0); - else exit(1); + + return 0; }