summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2001-04-17 20:09:50 +0000
committerkleink <kleink@NetBSD.org>2001-04-17 20:09:50 +0000
commit7aa4bf8f8fa3ca819bbb880d1517fe6b931ee4b2 (patch)
treeb5285eb22ed025459e42d592a977e62bd16f51f5 /include
parent13e5178e3d20476754564d002f2fdf8fbf0b8596 (diff)
Replace (sizeof (char) << 3) with a less silly-looking CHAR_BIT;
from Peter Seebach in PR standards/9333.
Diffstat (limited to 'include')
-rw-r--r--include/ctype.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ctype.h b/include/ctype.h
index 1555f8c0cb5..5e85f221395 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ctype.h,v 1.19 2001/01/21 10:44:15 itojun Exp $ */
+/* $NetBSD: ctype.h,v 1.20 2001/04/17 20:09:50 kleink Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -124,7 +124,7 @@ __END_DECLS
#endif
#ifdef _CTYPE_PRIVATE
-#define _CTYPE_NUM_CHARS (1<<(sizeof(char)<<3))
+#define _CTYPE_NUM_CHARS (1 << CHAR_BIT)
#define _CTYPE_ID "BSDCTYPE"
#define _CTYPE_REV 2