[3/3] btrfs-progs: fix wrong return value
diff mbox

Message ID 4BAB59BF.8050703@cn.fujitsu.com
State New, archived
Headers show

Commit Message

Miao Xie March 25, 2010, 12:40 p.m. UTC
None

Patch
diff mbox

diff --git a/btrfsctl.c b/btrfsctl.c
index be6bf25..e2aae17 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -249,8 +249,8 @@  int main(int ac, char **av)
 	}
 	printf("%s\n", BTRFS_BUILD_VERSION);
 	if (ret)
-		exit(0);
-	else
 		exit(1);
+
+	return 0;
 }