Sun May 3 22:25:25 2009 UTC ()
Pull up following revision(s) (requested by tls in ticket #611):
	sys/lib/libkern/crc32.c: revision 1.4
Make the function declaration the same for the big-endian case as
for the little-endian case, and consistent with the libkern.h
declaration.  Fixes build problem for at least hp700 and evbbarm-eb.


(snj)
diff -r1.4.4.4 -r1.4.4.5 src/sys/lib/libkern/crc32.c

cvs diff -r1.4.4.4 -r1.4.4.5 src/sys/lib/libkern/crc32.c (expand / switch to context diff)
--- src/sys/lib/libkern/crc32.c 2009/05/03 17:33:17 1.4.4.4
+++ src/sys/lib/libkern/crc32.c 2009/05/03 22:25:25 1.4.4.5
@@ -1,4 +1,4 @@
-/*	$NetBSD: crc32.c,v 1.4.4.4 2009/05/03 17:33:17 snj Exp $	*/
+/*	$NetBSD: crc32.c,v 1.4.4.5 2009/05/03 22:25:25 snj Exp $	*/
 
 /* crc32.c -- compute the CRC-32 of a data stream
  *
@@ -80,10 +80,7 @@
 #define DOBIG32 DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4
 
 /* ========================================================================= */
-uint32_t crc32(
-    uint32_t crc,
-    const unsigned char *buf,
-    unsigned len)
+uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len)
 {
     register u4 c;
     register const u4 *buf4;