summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 23:49:31 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 23:49:31 +0000
commit68e999b21f6d6e41b22c13ceea7bb3fccc39e707 (patch)
treebbed061a430aa9c60e1eea7ce2861eee9e40a6c1 /src
parent36504c3b09ff9d4327181d23bb2ea0c3be9a67ca (diff)
downloadcoreutils-68e999b21f6d6e41b22c13ceea7bb3fccc39e707.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
Diffstat (limited to 'src')
-rw-r--r--src/uname.c6
-rw-r--r--src/uptime.c4
-rw-r--r--src/users.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/uname.c b/src/uname.c
index 47f9ff45c..335061d21 100644
--- a/src/uname.c
+++ b/src/uname.c
@@ -1,7 +1,7 @@
/* uname -- print system information
- Copyright 1989, 1992, 1993, 1996, 1997, 1999, 2000, 2001, 2002, 2003 Free
- Software Foundation, Inc.
+ Copyright 1989, 1992, 1993, 1996, 1997, 1999, 2000, 2001, 2002,
+ 2003, 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
@@ -101,7 +101,7 @@ static struct option const long_options[] =
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
diff --git a/src/uptime.c b/src/uptime.c
index b039f01e5..652b256e8 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -1,5 +1,5 @@
/* GNU's uptime.
- Copyright (C) 1992-2002 Free Software Foundation, Inc.
+ Copyright (C) 1992-2002, 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
@@ -182,7 +182,7 @@ uptime (const char *filename)
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
diff --git a/src/users.c b/src/users.c
index 7fbc8c604..733024af1 100644
--- a/src/users.c
+++ b/src/users.c
@@ -1,5 +1,5 @@
/* GNU's users.
- Copyright (C) 1992-2003 Free Software Foundation, Inc.
+ Copyright (C) 1992-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
@@ -111,7 +111,7 @@ users (const char *filename)
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else