summaryrefslogtreecommitdiff
path: root/bitmap.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-06-01 04:51:58 +0000
committerDamien Miller <djm@mindrot.org>2017-06-01 14:55:23 +1000
commit4b2e2d3fd9dccff357e1e26ce9a5f2e103837a36 (patch)
treed5f88eb4c2ab8adf3dd14314d045e0c94abc3e06 /bitmap.c
parent75b8af8de805c0694b37fcf80ce82783b2acc86f (diff)
upstream commit
fix casts re constness Upstream-ID: e38f2bac162b37dbaf784d349c8327a6626fa266
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 71f87ec54..e8320d8c0 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -189,7 +189,7 @@ bitmap_from_string(struct bitmap *b, const void *p, size_t l)
189{ 189{
190 int r; 190 int r;
191 size_t i, offset, shift; 191 size_t i, offset, shift;
192 u_char *s = (u_char *)p; 192 const u_char *s = (const u_char *)p;
193 193
194 if (l > BITMAP_MAX / 8) 194 if (l > BITMAP_MAX / 8)
195 return -1; 195 return -1;