summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 23:22:33 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 23:22:33 +0000
commit6343ec2fadacc7cd880d95ae19b32f4cc21e3114 (patch)
tree85c0f006d33e2262fb7a7acf7590577e6f288e03 /src
parent36b51ca51a536b8659af735fbb9e3f456e9706ee (diff)
downloadcoreutils-6343ec2fadacc7cd880d95ae19b32f4cc21e3114.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Exit with status 1, not 4, if not implemented.
Diffstat (limited to 'src')
-rw-r--r--src/mknod.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mknod.c b/src/mknod.c
index 1d8278a57..fdf2b0ebe 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -1,5 +1,5 @@
/* mknod -- make special files
- 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
@@ -151,7 +151,7 @@ main (int argc, char **argv)
{
case 'b': /* `block' or `buffered' */
#ifndef S_IFBLK
- error (4, 0, _("block special files not supported"));
+ error (EXIT_FAILURE, 0, _("block special files not supported"));
#else
node_type = S_IFBLK;
#endif
@@ -160,7 +160,7 @@ main (int argc, char **argv)
case 'c': /* `character' */
case 'u': /* `unbuffered' */
#ifndef S_IFCHR
- error (4, 0, _("character special files not supported"));
+ error (EXIT_FAILURE, 0, _("character special files not supported"));
#else
node_type = S_IFCHR;
#endif
@@ -204,7 +204,7 @@ numbers must be specified"));
case 'p': /* `pipe' */
#ifndef S_ISFIFO
- error (4, 0, _("fifo files not supported"));
+ error (EXIT_FAILURE, 0, _("fifo files not supported"));
#else
if (argc - optind != 2)
{