diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 23:39:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 23:39:34 +0000 |
commit | 6618936d9d87a8c0fc49effcd32af07db902a44b (patch) | |
tree | 63400fc84c0ff0f042f9ce5feced50457e56d19f | |
parent | 3e397c67aa91c271f955482b6e1d2ef2202a22d8 (diff) | |
download | coreutils-6618936d9d87a8c0fc49effcd32af07db902a44b.tar.xz |
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
-rw-r--r-- | src/shred.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shred.c b/src/shred.c index 9453cb30c..bc89567b7 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1,6 +1,6 @@ /* shred.c - overwrite files and devices to make it harder to recover data - Copyright (C) 1999-2003 Free Software Foundation, Inc. + Copyright (C) 1999-2004 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999 Colin Plumb. This program is free software; you can redistribute it and/or modify @@ -151,7 +151,7 @@ char const *program_name; /* Initialized before any possible use */ void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -1622,7 +1622,7 @@ main (int argc, char **argv) /* Just on general principles, wipe s. */ memset (&s, 0, sizeof s); - exit (err); + exit (err == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* * vim:sw=2:sts=2: |