From 62346e2b656c256110918004d4fd8db140afa238 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 10 Nov 2005 07:12:17 +0000 Subject: r11634: - make crc table static - const uint8_t * in all places - update header prototype metze (This used to be commit 91dfa4c28d280aff8dbf46cf1e174b5b317ba322) --- source4/lib/crypto/crc32.c | 4 ++-- source4/lib/crypto/crc32.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib/crypto') diff --git a/source4/lib/crypto/crc32.c b/source4/lib/crypto/crc32.c index 8aec0c55be..5b9d9b108d 100644 --- a/source4/lib/crypto/crc32.c +++ b/source4/lib/crypto/crc32.c @@ -42,7 +42,7 @@ #include "includes.h" -const uint32_t crc32_tab[] = { +static const uint32_t crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, @@ -90,7 +90,7 @@ const uint32_t crc32_tab[] = { uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size) { - const unsigned char *p; + const uint8_t *p; uint32_t crc; p = buf; diff --git a/source4/lib/crypto/crc32.h b/source4/lib/crypto/crc32.h index bd9a39cb2b..7854abf865 100644 --- a/source4/lib/crypto/crc32.h +++ b/source4/lib/crypto/crc32.h @@ -1 +1 @@ -uint32_t crc32_calc_buffer(const uint8_t *buffer, uint32_t size); +uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size); -- cgit