diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-11-09 19:59:07 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-11-09 19:59:07 +0000 |
commit | abb8e107a9109532d1d2593988e04bd8b47302de (patch) | |
tree | 19a89b55deca6692719b9d818947907e97c7b8db /bin/pax/file_subs.c | |
parent | 18629dc9ff26c2c75bd348b0d34681ce8a203388 (diff) |
Compute the sv4cpio "crc" (it's actualy just a checksum) as a 32bit
number. Fixes crc computation on 64 bit archs. From Peter Philipp in PR
4606; looks right fgsch@, ok millert@
Diffstat (limited to 'bin/pax/file_subs.c')
-rw-r--r-- | bin/pax/file_subs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c index b0e0e9c6256..73db1af1129 100644 --- a/bin/pax/file_subs.c +++ b/bin/pax/file_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file_subs.c,v 1.29 2005/04/25 19:39:52 otto Exp $ */ +/* $OpenBSD: file_subs.c,v 1.30 2005/11/09 19:59:06 otto Exp $ */ /* $NetBSD: file_subs.c,v 1.4 1995/03/21 09:07:18 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static const char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: file_subs.c,v 1.29 2005/04/25 19:39:52 otto Exp $"; +static const char rcsid[] = "$OpenBSD: file_subs.c,v 1.30 2005/11/09 19:59:06 otto Exp $"; #endif #endif /* not lint */ @@ -1037,7 +1037,7 @@ set_crc(ARCHD *arcn, int fd) int res; off_t cpcnt = 0L; u_long size; - unsigned long crc = 0L; + u_int32_t crc = 0; char tbuf[FILEBLK]; struct stat sb; |