diff mbox

Btrfs-progs: make btrfsctl return values like everybody else

Message ID 20100202145252.GA15957@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Josef Bacik Feb. 2, 2010, 2:52 p.m. UTC
None
diff mbox

Patch

diff --git a/btrfsctl.c b/btrfsctl.c
index 66c4e89..73d9c30 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -231,9 +231,7 @@  int main(int ac, char **av)
 		printf("ioctl failed with error %d\n", ret);
 	}
 	printf("%s\n", BTRFS_BUILD_VERSION);
-	if (ret)
-		exit(0);
-	else
-		exit(1);
+
+	return ret ? 1 : 0;
 }