summaryrefslogtreecommitdiffstats
path: root/source/lib/crc32.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-25 19:03:27 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-25 19:03:27 +0000
commitc8fd555179314baf1672a23db34dc8ad9f2d02bf (patch)
treeac30cfb951db3fb1e4541540c8238d288e286667 /source/lib/crc32.c
parent6e22bf912cb981d91834c63098d41f5f8abaa594 (diff)
downloadsamba-c8fd555179314baf1672a23db34dc8ad9f2d02bf.tar.gz
samba-c8fd555179314baf1672a23db34dc8ad9f2d02bf.tar.xz
samba-c8fd555179314baf1672a23db34dc8ad9f2d02bf.zip
- typecast malloc / Realloc issues.
- signed / unsigned issues.
Diffstat (limited to 'source/lib/crc32.c')
-rw-r--r--source/lib/crc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/crc32.c b/source/lib/crc32.c
index 9da5b4bfe14..39c01fa30fb 100644
--- a/source/lib/crc32.c
+++ b/source/lib/crc32.c
@@ -59,7 +59,7 @@ static unsigned long CRCTable[256] =
uint32 crc32_calc_buffer( uint32 count, char *buffer)
{
uint32 crc=0xffffffff;
- int i;
+ uint32 i;
for(i=0;i<count;i++)
{
crc = (crc>>8) ^ CRCTable[(buffer[i] ^ crc) & 0xff];