diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-12 11:00:02 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-12 11:00:02 +0000 |
commit | f4a8417d6fa058ec33753a4df1222131a73add3e (patch) | |
tree | 905004b3c1e2325d42606ff63d24710fb1e5adab /source3 | |
parent | 02abe94f81136f85dc72b7015213871831ce2e1a (diff) | |
download | samba-f4a8417d6fa058ec33753a4df1222131a73add3e.tar.gz samba-f4a8417d6fa058ec33753a4df1222131a73add3e.tar.bz2 samba-f4a8417d6fa058ec33753a4df1222131a73add3e.zip |
Add const
(This used to be commit 147a0c8b13d20e06c557fb817a36fddf9a920d65)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/crc32.c b/source3/lib/crc32.c index bd4f1633e5..da3aeaa901 100644 --- a/source3/lib/crc32.c +++ b/source3/lib/crc32.c @@ -8,7 +8,7 @@ #include "includes.h" -static unsigned long CRCTable[256] = +static const unsigned long CRCTable[256] = { 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F, 0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988, @@ -55,7 +55,7 @@ static unsigned long CRCTable[256] = 0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D }; -uint32 crc32_calc_buffer( char *buffer, uint32 count) +uint32 crc32_calc_buffer( const char *buffer, uint32 count) { uint32 crc=0xffffffff, i; for(i=0;i<count;i++) |