summaryrefslogtreecommitdiff
path: root/src/mkfifo.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 23:22:07 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 23:22:07 +0000
commit36b51ca51a536b8659af735fbb9e3f456e9706ee (patch)
tree153762347bd4d15812ba2b0d5efa413b8e0027a3 /src/mkfifo.c
parent312d661adaa6830610c0ee3087aa50ac5c72d5b9 (diff)
downloadcoreutils-36b51ca51a536b8659af735fbb9e3f456e9706ee.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 4, if not implemented.
Diffstat (limited to 'src/mkfifo.c')
-rw-r--r--src/mkfifo.c6
1 files 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)
{