summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-30 10:25:11 +0000
committerJim Meyering <jim@meyering.net>1997-11-30 10:25:11 +0000
commitd08a2b63dc00a5ee26171abe768956dcf4534228 (patch)
treea9cace7c38d5e0fb90b0566418de2b7b03941336 /src
parent6ed8115087c6ecab6ff3df4271383183e2dd3166 (diff)
downloadcoreutils-d08a2b63dc00a5ee26171abe768956dcf4534228.tar.xz
(BITSPERBYTE): Remove.
(UID_T_MAX, GID_T_MAX): Define in terms of TYPE_MAXIMUM.
Diffstat (limited to 'src')
-rw-r--r--src/install.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/install.c b/src/install.c
index 7938325b8..360264a66 100644
--- a/src/install.c
+++ b/src/install.c
@@ -81,10 +81,6 @@
# 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 ();