From: Jim Meyering Date: Wed, 17 Jul 1996 03:13:54 +0000 (+0000) Subject: (OFF_T_MAX): Remove definition. X-Git-Tag: TEXTUTILS-1_19b~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e549af7279cc66680d84244e6c6fde9b22b904bb;p=platform%2Fupstream%2Fcoreutils.git (OFF_T_MAX): Remove definition. (main): Compare against LONG_MAX rather than OFF_T_MAX. --- diff --git a/src/od.c b/src/od.c index 3708f2d..a46ef17 100644 --- a/src/od.c +++ b/src/od.c @@ -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':