From 51a4d2330b078dcd111d05e6c00753780b0e90a3 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 24 Sep 2007 11:28:38 -0400 Subject: mount.nfs: teach [u]mount.nfs[4] to exit with EX_SUCCESS instead of 0 Use the newly defined EX_SUCCESS exit code in all the right places. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- utils/mount/mount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/mount/mount.c') diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 2513943..751fbb9 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -237,7 +237,7 @@ static int add_mtab(char *spec, char *mount_point, char *fstype, if (flags & MS_REMOUNT) { update_mtab(ment.mnt_dir, &ment); - return 0; + return EX_SUCCESS; } lock_mtab(); @@ -261,7 +261,7 @@ static int add_mtab(char *spec, char *mount_point, char *fstype, goto fail_close; } - result = 0; + result = EX_SUCCESS; fail_close: endmntent(mtab); @@ -421,7 +421,7 @@ int main(int argc, char *argv[]) printf("%s ("PACKAGE_STRING")\n", progname); else mount_usage(); - exit(0); + exit(EX_SUCCESS); } if ((argc < 3)) { @@ -444,7 +444,7 @@ int main(int argc, char *argv[]) break; case 'V': printf("%s: ("PACKAGE_STRING")\n", progname); - exit(0); + exit(EX_SUCCESS); case 'w': flags &= ~MS_RDONLY; break; -- cgit