summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-02-17 18:30:01 +0000
committerTim Potter <tpot@samba.org>2002-02-17 18:30:01 +0000
commite1a65ecd0d14700f313bb3b97beaff8dc66fdd29 (patch)
tree5ce1cc5921babd6b26c072290edf86729a69c41a /source3
parent56d5f6bad267d758cd375d5ad7172ce097cab63c (diff)
downloadsamba-e1a65ecd0d14700f313bb3b97beaff8dc66fdd29.tar.gz
samba-e1a65ecd0d14700f313bb3b97beaff8dc66fdd29.tar.bz2
samba-e1a65ecd0d14700f313bb3b97beaff8dc66fdd29.zip
int -> uint32
(This used to be commit 5efe39af0c89e549bb8211a39a949f80f6d1bf78)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/crc32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/crc32.c b/source3/lib/crc32.c
index e026fbf861..bd4f1633e5 100644
--- a/source3/lib/crc32.c
+++ b/source3/lib/crc32.c
@@ -57,8 +57,7 @@ static unsigned long CRCTable[256] =
uint32 crc32_calc_buffer( char *buffer, uint32 count)
{
- uint32 crc=0xffffffff;
- int i;
+ uint32 crc=0xffffffff, i;
for(i=0;i<count;i++)
crc = (crc>>8) ^ CRCTable[(buffer[i] ^ crc) & 0xff];
crc^=0xffffffff;