diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-17 03:13:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-17 03:13:54 +0000 |
commit | e549af7279cc66680d84244e6c6fde9b22b904bb (patch) | |
tree | 05412360428d0a80dc723d166a93270621c88ae0 | |
parent | e5c3e23ec40a0e49e8356c819ae7968d38278df9 (diff) | |
download | coreutils-e549af7279cc66680d84244e6c6fde9b22b904bb.tar.xz |
(OFF_T_MAX): Remove definition.
(main): Compare against LONG_MAX rather than OFF_T_MAX.
-rw-r--r-- | src/od.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -84,11 +84,6 @@ typedef double LONG_DOUBLE; # define BITSPERBYTE 8 #endif -#ifndef OFF_T_MAX -# define OFF_T_MAX ((off_t)(~((unsigned long)1 << (sizeof (off_t) - * BITSPERBYTE - 1)))) -#endif - #define STREQ(a,b) (strcmp((a), (b)) == 0) #ifndef MAX @@ -1715,10 +1710,10 @@ it must be one character from [doxn]"), if (s_err != LONGINT_OK) STRTOL_FATAL_ERROR (optarg, _("limit argument"), s_err); - if (tmp > OFF_T_MAX) + if (tmp > LONG_MAX) error (EXIT_FAILURE, 0, _("specified number of bytes `%s' is larger than \ -the maximum\nrepresentable value of type off_t"), optarg); +the maximum\nrepresentable value of type `long'"), optarg); break; case 's': |