]> 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 23:22:07 +0000 (23:22 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 23:22:07 +0000 (23:22 +0000)
(main): Exit with status 1, not 4, if not implemented.

src/mkfifo.c

index 0739c36199a216d5aa0f8bdbe34db278f1ba8150..ff9410837dd5c5dd419f06f7317576e3f9cf35c3 100644 (file)
@@ -1,5 +1,5 @@
 /* mkfifo -- make fifo's (named pipes)
-   Copyright (C) 90, 91, 1995-2003 Free Software Foundation, Inc.
+   Copyright (C) 90, 91, 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
@@ -47,7 +47,7 @@ static struct option const longopts[] =
 void
 usage (int status)
 {
-  if (status != 0)
+  if (status != EXIT_SUCCESS)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
             program_name);
   else
@@ -91,7 +91,7 @@ main (int argc, char **argv)
   specified_mode = NULL;
 
 #ifndef S_ISFIFO
-  error (4, 0, _("fifo files not supported"));
+  error (EXIT_FAILURE, 0, _("fifo files not supported"));
 #else
   while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
     {