diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2010-09-09 13:47:32 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-09-23 20:26:49 -0400 |
commit | 2d428975f240caf8faa3a5d86e8c6c56e163f6e3 (patch) | |
tree | 859bc8c2f4c65cd827cee99c286f076240c0a090 | |
parent | 076de67f5bfb98ba4aa1e488321f8306ca964d21 (diff) |
fix wrong return value
btrfsctl returns 1 if it does something successfully.
this patch fixes this problem.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
-rw-r--r-- | btrfsctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |