summaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-01 02:55:13 +0000
committerMatt Kraai2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /md5sum.c
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
busybox-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/md5sum.c b/md5sum.c
index 21570de..30b882a 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -902,22 +902,22 @@ int md5sum_main(int argc,
if (file_type_specified && do_check) {
errorMsg("the -b and -t options are meaningless when verifying checksums\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
if (n_strings > 0 && do_check) {
errorMsg("the -g and -c options are mutually exclusive\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
if (status_only && !do_check) {
errorMsg("the -s option is meaningful only when verifying checksums\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
if (warn && !do_check) {
errorMsg("the -w option is meaningful only when verifying checksums\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
if (n_strings > 0) {
@@ -925,7 +925,7 @@ int md5sum_main(int argc,
if (optind < argc) {
errorMsg("no files may be specified when using -g\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
for (i = 0; i < n_strings; ++i) {
size_t cnt;
@@ -992,13 +992,16 @@ int md5sum_main(int argc,
if (fclose (stdout) == EOF) {
errorMsg("write error\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
if (have_read_stdin && fclose (stdin) == EOF) {
errorMsg("standard input\n");
- exit FALSE;
+ return EXIT_FAILURE;
}
- exit (err == 0 ? TRUE : FALSE);
+ if (err == 0)
+ return EXIT_SUCCESS;
+ else
+ return EXIT_FAILURE;
}