diff options
Diffstat (limited to 'kern/bitmap.c')
-rw-r--r-- | kern/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/bitmap.c b/kern/bitmap.c index d270b9f5..97e497d6 100644 --- a/kern/bitmap.c +++ b/kern/bitmap.c @@ -15,11 +15,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <limits.h> #include <string.h> #include <kern/bitmap.h> #include <kern/bitmap_i.h> -#include <kern/limits.h> int bitmap_cmp(const unsigned long *a, const unsigned long *b, int nr_bits) @@ -78,7 +78,7 @@ bitmap_find_next_bit(const unsigned long *bm, int nr_bits, int bit, end = bm + BITMAP_LONGS(nr_bits); if (bit >= LONG_BIT) { - bitmap_lookup(bm, bit); + bitmap_lookup(&bm, &bit); nr_bits -= ((bm - start) * LONG_BIT); } |