From 36b51ca51a536b8659af735fbb9e3f456e9706ee Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 21 Jan 2004 23:22:07 +0000 Subject: (usage): Use EXIT_SUCCESS, not 0, for clarity. (main): Exit with status 1, not 4, if not implemented. --- src/mkfifo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mkfifo.c b/src/mkfifo.c index 0739c3619..ff9410837 100644 --- a/src/mkfifo.c +++ b/src/mkfifo.c @@ -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) { -- cgit v1.2.3-70-g09d2