diff options
Diffstat (limited to 'source4/lib/crypto')
-rw-r--r-- | source4/lib/crypto/crc32.c | 4 | ||||
-rw-r--r-- | source4/lib/crypto/crc32.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |