summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crc32.c b/crc32.c
index e07bbed..6e0c87d 100644
--- a/crc32.c
+++ b/crc32.c
@@ -59,9 +59,9 @@ static const uint32_t crc32_table[256] = {
0x2d02ef8d
};
-uint32_t crc32(uint32_t crc, uint8_t *buf, size_t len)
+uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len)
{
- uint8_t *end;
+ const uint8_t *end;
crc = ~crc;
for (end = buf + len; buf < end; buf++)