(OFF_T_MAX): Remove definition.
authorJim Meyering <jim@meyering.net>
Wed, 17 Jul 1996 03:13:54 +0000 (03:13 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 17 Jul 1996 03:13:54 +0000 (03:13 +0000)
(main): Compare against LONG_MAX rather than OFF_T_MAX.

src/od.c

index 3708f2d..a46ef17 100644 (file)
--- 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':