summaryrefslogtreecommitdiffhomepage
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
committerMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /util-linux/mount.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 8b115c9f5..34dbb5eee 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -330,7 +330,7 @@ extern int mount_main(int argc, char **argv)
int fakeIt = FALSE;
int useMtab = TRUE;
int i;
- int rc = FALSE;
+ int rc = EXIT_FAILURE;
int fstabmount = FALSE;
#if defined BB_FEATURE_USE_DEVPS_PATCH
@@ -367,7 +367,7 @@ extern int mount_main(int argc, char **argv)
free( mntentlist);
close(fd);
#endif
- exit(TRUE);
+ return EXIT_SUCCESS;
}
#else
if (argc == 1) {
@@ -388,7 +388,7 @@ extern int mount_main(int argc, char **argv)
} else {
perror(mtab_file);
}
- exit(TRUE);
+ return EXIT_SUCCESS;
}
#endif
@@ -489,7 +489,7 @@ singlemount:
&extra_opts, &string_flags, 1);
if ( rc != 0) {
fatalError("nfsmount failed: %s\n", strerror(errno));
- rc = FALSE;
+ rc = EXIT_FAILURE;
}
}
#endif
@@ -499,7 +499,7 @@ singlemount:
if (all == FALSE)
break;
- rc = TRUE; // Always return 0 for 'all'
+ rc = EXIT_SUCCESS; // Always return 0 for 'all'
}
if (fstabmount == TRUE)
endmntent(f);
@@ -512,8 +512,6 @@ singlemount:
goto singlemount;
- exit(FALSE);
-
goodbye:
usage(mount_usage);
}