summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index a591446..214b8b7 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -240,8 +240,8 @@
/* 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) (((uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY)))
-#define isclr(a,i) ((((uint8_t *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
+#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)
/* Macros for counting and rounding. */
#ifndef howmany
OpenPOWER on IntegriCloud