Permalink
Browse files

Use const for CRC routines' data buffer arguments in crcdbl.

  • Loading branch information...
1 parent 510fc0f commit 91e5ee49698e694d8bdd87cd6448f6fdee65b45f @madler committed Oct 23, 2016
Showing with 3 additions and 2 deletions.
  1. +1 −1 crcdbl.c
  2. +2 −1 crcdbl.h
View
@@ -71,7 +71,7 @@
} while (0)
void crc_bitwise_dbl(model_t *model, word_t *crc_hi, word_t *crc_lo,
- unsigned char *buf, size_t len)
+ unsigned char const *buf, size_t len)
{
word_t poly_lo = model->poly;
word_t poly_hi = model->poly_hi;
View
@@ -27,6 +27,7 @@
The CRC of the sequence is left in hi, lo.
*/
-void crc_bitwise_dbl(model_t *, word_t *, word_t *, unsigned char *, size_t);
+void crc_bitwise_dbl(model_t *, word_t *, word_t *,
+ unsigned char const *, size_t);
#endif

0 comments on commit 91e5ee4

Please sign in to comment.