diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-10 07:12:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:03 -0500 |
commit | 62346e2b656c256110918004d4fd8db140afa238 (patch) | |
tree | f9b96a1647b361bfd013583679e26441b9193bac /source4 | |
parent | 2c8dcf417783ed859710824668452fb003fe4632 (diff) | |
download | samba-62346e2b656c256110918004d4fd8db140afa238.tar.gz samba-62346e2b656c256110918004d4fd8db140afa238.tar.bz2 samba-62346e2b656c256110918004d4fd8db140afa238.zip |
r11634: - make crc table static
- const uint8_t * in all places
- update header prototype
metze
(This used to be commit 91dfa4c28d280aff8dbf46cf1e174b5b317ba322)
Diffstat (limited to 'source4')
-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); |