aboutsummaryrefslogtreecommitdiffstats
path: root/src/cksum.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-24 14:58:01 +0000
committerJim Meyering <jim@meyering.net>1996-03-24 14:58:01 +0000
commit47f70113d4342682a6408f85337676f1ccb7e8fe (patch)
treee0a69d9a12ac5b336364cc0191f2390d5061fd50 /src/cksum.c
parent. (diff)
downloadcoreutils-47f70113d4342682a6408f85337676f1ccb7e8fe.tar.gz
coreutils-47f70113d4342682a6408f85337676f1ccb7e8fe.zip
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
This doesn't change `error (1' calls.
Diffstat (limited to 'src/cksum.c')
-rw-r--r--src/cksum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cksum.c b/src/cksum.c
index 51625972f..035b44f9c 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -99,7 +99,7 @@ main ()
remainder (i * 5 + 4), remainder (i * 5 + 5));
}
printf ("\n};\n");
- exit (0);
+ exit (EXIT_SUCCESS);
}
#else /* !CRCTAB */
@@ -276,7 +276,7 @@ Print CRC checksum and byte counts of each FILE.\n\
--version output version information and exit\n\
"));
}
- exit (status);
+ exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
int
@@ -307,7 +307,7 @@ main (int argc, char **argv)
if (show_version)
{
printf ("cksum - %s\n", PACKAGE_VERSION);
- exit (0);
+ exit (EXIT_SUCCESS);
}
if (show_help)
@@ -327,7 +327,7 @@ main (int argc, char **argv)
if (have_read_stdin && fclose (stdin) == EOF)
error (1, errno, "-");
- exit (errors);
+ exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
#endif /* !CRCTAB */