Whamcloud - gitweb
libext2fs: find/alloc a range of empty blocks
[tools/e2fsprogs.git] / lib / ext2fs / bitops.c
index 7c3f215..8e4c05c 100644 (file)
@@ -142,7 +142,7 @@ unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes)
                res += popcount8(*cp++);
                nbytes--;
        }
-       p = (__u32 *) cp;
+       p = (const __u32 *) cp;
 
        while (nbytes > 4) {
                res += popcount32(*p++);