summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-12-06 04:00:59 +0000
committerkmacy <kmacy@FreeBSD.org>2007-12-06 04:00:59 +0000
commit7b59d90c86943d65f82a939c2575f05e65260596 (patch)
tree50d29fb2d7793aa4f6e9ce4219ceae34e7699aa0 /sys
parent5f073f27891e074a1328a322fd6bcf3dc7aebd87 (diff)
downloadFreeBSD-src-7b59d90c86943d65f82a939c2575f05e65260596.zip
FreeBSD-src-7b59d90c86943d65f82a939c2575f05e65260596.tar.gz
Respect the fact that the value a may be constant so cast to const uint8_t *
Diffstat (limited to 'sys')
-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