diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 23:07:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 23:07:15 +0000 |
commit | a9f7720ec980316e700e185d0f1059ba3457f0a8 (patch) | |
tree | 333f2fd862aa66d203e75f4f64803059c1bc426e /src/fmt.c | |
parent | a86c7314d8d8f60210cafc16cf8fbbe7794f6008 (diff) | |
download | coreutils-a9f7720ec980316e700e185d0f1059ba3457f0a8.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/fmt.c')
-rw-r--r-- | src/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* GNU fmt -- simple text formatter. - Copyright (C) 1994-2003 Free Software Foundation, Inc. + Copyright (C) 1994-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 @@ -263,7 +263,7 @@ static int last_line_length; void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -296,7 +296,7 @@ With no FILE, or when FILE is -, read standard input.\n"), stdout); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } - exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); + exit (status); } /* Decode options and launch execution. */ |