From 64525309e3a430d0f801cfad5ae347d4242ff259 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2005 05:24:52 +0000 Subject: r11631: fixed a signed/unsigned warning (This used to be commit 86d08d3ec5cfa36e048042563a56aca79c87a5bb) --- source4/lib/crypto/crc32.c | 2 +- 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); -- cgit