]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(BITSPERBYTE): Remove.
authorJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:25:11 +0000 (10:25 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:25:11 +0000 (10:25 +0000)
(UID_T_MAX, GID_T_MAX): Define in terms of TYPE_MAXIMUM.

src/install.c

index 7938325b869fbdaf0e30ad7ec7236bc92c47fee1..360264a66b124302624400020d1759ff70796f1e 100644 (file)
 # include <values.h>
 #endif
 
-#ifndef BITSPERBYTE
-# define BITSPERBYTE 8
-#endif
-
 struct passwd *getpwnam ();
 struct group *getgrnam ();
 
@@ -108,13 +104,11 @@ gid_t getgid ();
 #define READ_SIZE (32 * 1024)
 
 #ifndef UID_T_MAX
-# define UID_T_MAX ((uid_t)(~((unsigned long)1 << ((sizeof (uid_t) \
-                                                   * BITSPERBYTE - 1)))))
+# define UID_T_MAX TYPE_MAXIMUM (uid_t)
 #endif
 
 #ifndef GID_T_MAX
-# define GID_T_MAX ((gid_t)(~((unsigned long)1 << ((sizeof (gid_t) \
-                                                   * BITSPERBYTE - 1)))))
+# define GID_T_MAX TYPE_MAXIMUM (gid_t)
 #endif
 
 char *base_name ();