svn commit: samba r11634 - in branches/SAMBA_4_0/source/lib/crypto:
.
metze at samba.org
metze at samba.org
Thu Nov 10 07:12:17 GMT 2005
Author: metze
Date: 2005-11-10 07:12:17 +0000 (Thu, 10 Nov 2005)
New Revision: 11634
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11634
Log:
- make crc table static
- const uint8_t * in all places
- update header prototype
metze
Modified:
branches/SAMBA_4_0/source/lib/crypto/crc32.c
branches/SAMBA_4_0/source/lib/crypto/crc32.h
Changeset:
Modified: branches/SAMBA_4_0/source/lib/crypto/crc32.c
===================================================================
--- branches/SAMBA_4_0/source/lib/crypto/crc32.c 2005-11-10 05:42:07 UTC (rev 11633)
+++ branches/SAMBA_4_0/source/lib/crypto/crc32.c 2005-11-10 07:12:17 UTC (rev 11634)
@@ -42,7 +42,7 @@
#include "includes.h"
-const uint32_t crc32_tab[] = {
+static const uint32_t crc32_tab[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
@@ -90,7 +90,7 @@
uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size)
{
- const unsigned char *p;
+ const uint8_t *p;
uint32_t crc;
p = buf;
Modified: branches/SAMBA_4_0/source/lib/crypto/crc32.h
===================================================================
--- branches/SAMBA_4_0/source/lib/crypto/crc32.h 2005-11-10 05:42:07 UTC (rev 11633)
+++ branches/SAMBA_4_0/source/lib/crypto/crc32.h 2005-11-10 07:12:17 UTC (rev 11634)
@@ -1 +1 @@
-uint32_t crc32_calc_buffer(const uint8_t *buffer, uint32_t size);
+uint32_t crc32_calc_buffer(const uint8_t *buf, size_t size);
More information about the samba-cvs
mailing list