diff options
author | Richard Braun <rbraun@sceen.net> | 2013-03-08 23:44:24 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-03-08 23:44:24 +0100 |
commit | 540fad4a474d8c25929d8e2b41e24c3ebc6cb896 (patch) | |
tree | 8ebd5cf5a01acef6e423a6d75f40fca4c4328b31 /kern/bitmap.c | |
parent | 719a1aa44afbc61af9f81af83bd34b71e09fec0f (diff) |
kern/bitmap: add const keywords where appropriate
Diffstat (limited to 'kern/bitmap.c')
-rw-r--r-- | kern/bitmap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kern/bitmap.c b/kern/bitmap.c index 7406c7ef..849d3092 100644 --- a/kern/bitmap.c +++ b/kern/bitmap.c @@ -19,15 +19,17 @@ #include <kern/limits.h> int -bitmap_find_next_bit(unsigned long *bm, int nr_bits, int bit, int complement) +bitmap_find_next_bit(const unsigned long *bm, int nr_bits, int bit, + int complement) { - unsigned long word, *start, *end; + const unsigned long *start, *end; + unsigned long word; start = bm; end = bm + BITMAP_LONGS(nr_bits); if (bit >= LONG_BIT) - bitmap_lookup(&bm, &bit); + bitmap_lookup(bm, bit); word = *bm; |