summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-17 03:13:54 +0000
committerJim Meyering <jim@meyering.net>1996-07-17 03:13:54 +0000
commite549af7279cc66680d84244e6c6fde9b22b904bb (patch)
tree05412360428d0a80dc723d166a93270621c88ae0 /src/od.c
parente5c3e23ec40a0e49e8356c819ae7968d38278df9 (diff)
downloadcoreutils-e549af7279cc66680d84244e6c6fde9b22b904bb.tar.xz
(OFF_T_MAX): Remove definition.
(main): Compare against LONG_MAX rather than OFF_T_MAX.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/od.c b/src/od.c
index 3708f2d16..a46ef17a1 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':