]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Use EXIT_SUCCESS, not 0, for clarity.
authorJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 22:48:06 +0000 (22:48 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 22:48:06 +0000 (22:48 +0000)
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.

src/cksum.c

index 9253d9b16711f75fe59b792c851dc9714f4349cb..fed5d1fc521bf084e09934868c5eeb8f0091dd81 100644 (file)
@@ -1,5 +1,5 @@
 /* cksum -- calculate and print POSIX checksums and sizes of files
-   Copyright (C) 92, 1995-2003 Free Software Foundation, Inc.
+   Copyright (C) 92, 1995-2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -273,7 +273,7 @@ cksum (const char *file, int print_name)
 void
 usage (int status)
 {
-  if (status != 0)
+  if (status != EXIT_SUCCESS)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
             program_name);
   else
@@ -291,7 +291,7 @@ Print CRC checksum and byte counts of each FILE.\n\
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
-  exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+  exit (status);
 }
 
 int