summaryrefslogtreecommitdiff
path: root/ewah/ewah_io.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-04-28 10:55:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-29 19:43:15 (GMT)
commita0a2f7d79c953b012adcfb0be3f9a60d5efbf644 (patch)
tree64799f1fcc665b3f817f7ce4ca4c698ef9df492b /ewah/ewah_io.c
parentd8779e1e2536bdd024254af14d2c046bba2bbb01 (diff)
downloadgit-a0a2f7d79c953b012adcfb0be3f9a60d5efbf644.zip
git-a0a2f7d79c953b012adcfb0be3f9a60d5efbf644.tar.gz
git-a0a2f7d79c953b012adcfb0be3f9a60d5efbf644.tar.bz2
ewah: fix constness of ewah_read_mmap
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewah_io.c')
-rw-r--r--ewah/ewah_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ewah/ewah_io.c b/ewah/ewah_io.c
index f7f700e..1c2d7af 100644
--- a/ewah/ewah_io.c
+++ b/ewah/ewah_io.c
@@ -110,9 +110,9 @@ int ewah_serialize(struct ewah_bitmap *self, int fd)
return ewah_serialize_to(self, write_helper, (void *)(intptr_t)fd);
}
-int ewah_read_mmap(struct ewah_bitmap *self, void *map, size_t len)
+int ewah_read_mmap(struct ewah_bitmap *self, const void *map, size_t len)
{
- uint8_t *ptr = map;
+ const uint8_t *ptr = map;
size_t i;
self->bit_size = get_be32(ptr);