diff options
author | Tim Potter <tpot@samba.org> | 2002-02-17 18:30:01 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-02-17 18:30:01 +0000 |
commit | 5efe39af0c89e549bb8211a39a949f80f6d1bf78 (patch) | |
tree | 492bc535c3ed3baa713148a4abb82d0d0961080c /source/lib/crc32.c | |
parent | 0511589088dc3e990f7b1a38a06489814c49ec1b (diff) | |
download | samba-5efe39af0c89e549bb8211a39a949f80f6d1bf78.tar.gz samba-5efe39af0c89e549bb8211a39a949f80f6d1bf78.tar.xz samba-5efe39af0c89e549bb8211a39a949f80f6d1bf78.zip |
int -> uint32
Diffstat (limited to 'source/lib/crc32.c')
-rw-r--r-- | source/lib/crc32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/lib/crc32.c b/source/lib/crc32.c index e026fbf8615..bd4f1633e50 100644 --- a/source/lib/crc32.c +++ b/source/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; |