summaryrefslogtreecommitdiff
path: root/cipher/crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/crc.c')
-rw-r--r--cipher/crc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cipher/crc.c b/cipher/crc.c
index 098237c0..d04fff89 100644
--- a/cipher/crc.c
+++ b/cipher/crc.c
@@ -129,8 +129,9 @@ static u32 crc32_table[256] = {
*
*/
static u32
-update_crc32 (u32 crc, char *buf, size_t len)
+update_crc32 (u32 crc, const void *buf_arg, size_t len)
{
+ const char *buf = buf_arg;
size_t n;
for (n = 0; n < len; n++)
@@ -156,7 +157,7 @@ crc32_init (void *context)
}
static void
-crc32_write (void *context, byte * inbuf, size_t inlen)
+crc32_write (void *context, const void *inbuf, size_t inlen)
{
CRC_CONTEXT *ctx = (CRC_CONTEXT *) context;
if (!inbuf)
@@ -244,8 +245,9 @@ crc24rfc2440_init (void *context)
}
static void
-crc24rfc2440_write (void *context, byte * inbuf, size_t inlen)
+crc24rfc2440_write (void *context, const void *inbuf_arg, size_t inlen)
{
+ const unsigned char *inbuf = inbuf_arg;
int i;
CRC_CONTEXT *ctx = (CRC_CONTEXT *) context;