Commit 79710d89 authored by David Gibson's avatar David Gibson

ccan/bitmap: const for bitmap_test_bit.

No reason for it not to be.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent ac7f5575
......@@ -75,7 +75,7 @@ static inline void bitmap_change_bit(bitmap *bitmap, int n)
BITMAP_WORD(bitmap, n) ^= BITMAP_WORDBIT(n);
}
static inline bool bitmap_test_bit(bitmap *bitmap, int n)
static inline bool bitmap_test_bit(const bitmap *bitmap, int n)
{
return !!(BITMAP_WORD(bitmap, n) & BITMAP_WORDBIT(n));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment