summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-10 05:24:52 +0000
committerAndrew Tridgell <tridge@samba.org>2005-11-10 05:24:52 +0000
commit3d9c918718f2dc4e2a55692089f065e47cb1f395 (patch)
treed85bc567a92cf1879f4d5870496a52268410daa5 /source
parent3f4442a301e95ab73d6c27c475d19afb34c76ecb (diff)
downloadsamba-3d9c918718f2dc4e2a55692089f065e47cb1f395.tar.gz
samba-3d9c918718f2dc4e2a55692089f065e47cb1f395.tar.xz
samba-3d9c918718f2dc4e2a55692089f065e47cb1f395.zip
r11631: fixed a signed/unsigned warning
Diffstat (limited to 'source')
-rw-r--r--source/lib/crypto/crc32.c2
-rw-r--r--source/lib/crypto/crc32.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/crypto/crc32.c b/source/lib/crypto/crc32.c
index 3a33d1a88bc..8aec0c55be1 100644
--- a/source/lib/crypto/crc32.c
+++ b/source/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/source/lib/crypto/crc32.h b/source/lib/crypto/crc32.h
index 5b3642ffc86..bd9a39cb2b5 100644
--- a/source/lib/crypto/crc32.h
+++ b/source/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);