From c05f1c0f90c4a4354a13dd07be9d5c43093acfc8 Mon Sep 17 00:00:00 2001 From: he Date: Thu, 26 Mar 2009 22:18:14 +0000 Subject: [PATCH] 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. --- sys/lib/libkern/crc32.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/lib/libkern/crc32.c b/sys/lib/libkern/crc32.c index f5512be69ad9..490b6fc5f6a5 100644 --- a/sys/lib/libkern/crc32.c +++ b/sys/lib/libkern/crc32.c @@ -1,4 +1,4 @@ -/* $NetBSD: crc32.c,v 1.3 2009/03/25 19:21:39 tls Exp $ */ +/* $NetBSD: crc32.c,v 1.4 2009/03/26 22:18:14 he Exp $ */ /* crc32.c -- compute the CRC-32 of a data stream * @@ -80,10 +80,7 @@ uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len) #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;