summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/param.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 214b8b7..e8aa796 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -238,10 +238,12 @@
#define MAXSYMLINKS 32
/* Bit map related macros. */
-#define setbit(a,i) (((uint8_t *)(a))[(i)/NBBY] |= 1<<((i)%NBBY))
-#define clrbit(a,i) (((uint8_t *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY)))
-#define isset(a,i) (((const uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
-#define isclr(a,i) ((((const uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
+#define setbit(a,i) (((unsigned char *)(a))[(i)/NBBY] |= 1<<((i)%NBBY))
+#define clrbit(a,i) (((unsigned char *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY)))
+#define isset(a,i) \
+ (((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
+#define isclr(a,i) \
+ ((((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
/* Macros for counting and rounding. */
#ifndef howmany
OpenPOWER on IntegriCloud