summaryrefslogtreecommitdiff
path: root/src/chown.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 22:45:11 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 22:45:11 +0000
commit654e59cfd460936609bb2093156e3f3582d537c7 (patch)
tree6353989e99a591ba26597283071fc0823809245b /src/chown.c
parentc5a68e8782736c145c7356e85a3d410e228d6cf7 (diff)
downloadcoreutils-654e59cfd460936609bb2093156e3f3582d537c7.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Removed unused local 'fail'.
Diffstat (limited to 'src/chown.c')
-rw-r--r--src/chown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chown.c b/src/chown.c
index 956cd8943..a326fdcd5 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -1,5 +1,5 @@
/* chown -- change user and group ownership of files
- Copyright (C) 89, 90, 91, 1995-2003 Free Software Foundation, Inc.
+ Copyright (C) 89, 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
@@ -86,7 +86,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
@@ -171,7 +171,7 @@ main (int argc, char **argv)
int bit_flags = FTS_PHYSICAL;
struct Chown_option chopt;
- int fail = 0;
+ int fail;
int optc;
initialize_main (&argc, &argv);