diff options
author | Jim Meyering <jim@meyering.net> | 2000-10-21 13:05:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-10-21 13:05:40 +0000 |
commit | fb5e934c73679d2271b0316b08afb1848201149c (patch) | |
tree | 425199dcdac1a89daa3527a08bdcab68605de4f1 | |
parent | 09ad98374b808b4e7701e5801ef185c09d18bcb7 (diff) | |
download | coreutils-fb5e934c73679d2271b0316b08afb1848201149c.tar.xz |
(SORT_OUT_OF_ORDER): Define.
(main): Use it instead of hard-coding the `1'.
-rw-r--r-- | src/sort.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c index 5c1973a0a..f00fdc5b4 100644 --- a/src/sort.c +++ b/src/sort.c @@ -73,6 +73,7 @@ double strtod (); not properly sorted. Any other irregular exit must exit with a status code greater than 1. */ #define SORT_FAILURE 2 +#define SORT_OUT_OF_ORDER 1 #define C_DECIMAL_POINT '.' #define NEGATION_SIGN '-' @@ -2249,7 +2250,7 @@ but lacks following character offset")); /* POSIX requires that sort return 1 IFF invoked with -c and the input is not properly sorted. */ - exit (check (files, nfiles) == 0 ? EXIT_SUCCESS : 1); + exit (check (files, nfiles) == 0 ? EXIT_SUCCESS : SORT_OUT_OF_ORDER); } if (!STREQ (outfile, "-")) |