summaryrefslogtreecommitdiff
path: root/src/join.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 23:14:46 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 23:14:46 +0000
commitf56bc12872aa4ac8a9dca4f2d5a2c48956f4191c (patch)
tree0f3c3d3992a14125eba5ca8d3323fb3f71bd788e /src/join.c
parent6488b3bb564a2bd439b10816fa69f6599913882b (diff)
downloadcoreutils-f56bc12872aa4ac8a9dca4f2d5a2c48956f4191c.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status since the arg is already the correct exit status now.
Diffstat (limited to 'src/join.c')
-rw-r--r--src/join.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/join.c b/src/join.c
index d5c6fbe16..db875ec32 100644
--- a/src/join.c
+++ b/src/join.c
@@ -1,5 +1,5 @@
/* join - join lines of two files on a common field
- Copyright (C) 91, 1995-2003 Free Software Foundation, Inc.
+ Copyright (C) 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
@@ -150,7 +150,7 @@ get_option (int argc, char **argv)
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
@@ -194,7 +194,7 @@ Important: FILE1 and FILE2 must be sorted on the join fields.\n\
"), stdout);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
- exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+ exit (status);
}
/* Return true if C is a blank (a default input field separator). */