diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-10 05:24:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:02 -0500 |
commit | 64525309e3a430d0f801cfad5ae347d4242ff259 (patch) | |
tree | abf996bb9f0b7ac2a80dad9054af1ba9557ed9a4 /source4 | |
parent | 1aa141dbd56e4845cdaddf0c424212a317b78dcf (diff) | |
download | samba-64525309e3a430d0f801cfad5ae347d4242ff259.tar.gz samba-64525309e3a430d0f801cfad5ae347d4242ff259.tar.bz2 samba-64525309e3a430d0f801cfad5ae347d4242ff259.zip |
r11631: fixed a signed/unsigned warning
(This used to be commit 86d08d3ec5cfa36e048042563a56aca79c87a5bb)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/crypto/crc32.c | 2 | ||||
-rw-r--r-- | source4/lib/crypto/crc32.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/crypto/crc32.c b/source4/lib/crypto/crc32.c index 3a33d1a88b..8aec0c55be 100644 --- a/source4/lib/crypto/crc32.c +++ b/source4/lib/crypto/crc32.c @@ -88,7 +88,7 @@ const uint32_t crc32_tab[] = { 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d }; -uint32_t crc32_calc_buffer(const char *buf, size_t size) +uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size) { const unsigned char *p; uint32_t crc; diff --git a/source4/lib/crypto/crc32.h b/source4/lib/crypto/crc32.h index 5b3642ffc8..bd9a39cb2b 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 count); +uint32_t crc32_calc_buffer(const uint8_t *buffer, uint32_t size); |