diff options
author | Tobias Klauser <klto@zhaw.ch> | 2009-12-15 15:18:50 +0100 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2009-12-15 15:18:50 +0100 |
commit | c6e370e4a3a1c574e50240fecefe05965464aefd (patch) | |
tree | 72a788ab5feb0572c20d4a8550ee567323925e31 /crc32.c | |
parent | 64b810b41989876099b3c461b3ac91d4b3813d9d (diff) |
crc32: constify arguments
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) |