* [PATCH 3/3] btrfs-progs: fix wrong return value
@ 2010-03-25 12:40 Miao Xie
0 siblings, 0 replies; only message in thread
From: Miao Xie @ 2010-03-25 12:40 UTC (permalink / raw)
To: Chris Mason; +Cc: Linux Btrfs
From: Miao Xie <miaox@cn.fujitsu.com>
btrfsctl returns 1 if it does something successfully. this patch fixes this
problem.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
---
btrfsctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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;
}
--
1.6.5.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-25 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 12:40 [PATCH 3/3] btrfs-progs: fix wrong return value Miao Xie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.