diff options
Diffstat (limited to 'pkgtools/mtree/files/crc.c')
-rw-r--r-- | pkgtools/mtree/files/crc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgtools/mtree/files/crc.c b/pkgtools/mtree/files/crc.c index bde45ab5161..548584b707f 100644 --- a/pkgtools/mtree/files/crc.c +++ b/pkgtools/mtree/files/crc.c @@ -1,4 +1,4 @@ -/* $NetBSD: crc.c,v 1.4 2008/11/06 02:14:52 jschauma Exp $ */ +/* $NetBSD: crc.c,v 1.5 2010/03/21 16:30:17 joerg Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -47,7 +47,7 @@ #if 0 static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93"; #else -__RCSID("$NetBSD: crc.c,v 1.4 2008/11/06 02:14:52 jschauma Exp $"); +__RCSID("$NetBSD: crc.c,v 1.5 2010/03/21 16:30:17 joerg Exp $"); #endif #endif /* not lint */ @@ -67,7 +67,7 @@ __RCSID("$NetBSD: crc.c,v 1.4 2008/11/06 02:14:52 jschauma Exp $"); #include "extern.h" -static const u_int32_t crctab[] = { +static const uint32_t crctab[] = { 0x0, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, @@ -129,15 +129,15 @@ static const u_int32_t crctab[] = { * success and 1 on failure. Errno is set on failure. */ extern int sflag; -u_int32_t crc_total = ~0; /* The crc over a number of files. */ +uint32_t crc_total = ~0; /* The crc over a number of files. */ int -crc(int fd, u_int32_t *cval, u_int32_t *clen) +crc(int fd, uint32_t *cval, uint32_t *clen) { u_char *p; int nr; - u_int32_t thecrc, len; - u_int32_t crctot; + uint32_t thecrc, len; + uint32_t crctot; u_char buf[16 * 1024]; #define COMPUTE(var, ch) (var) = (var) << 8 ^ crctab[(var) >> 24 ^ (ch)] |