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/buf_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/buf_subs.c')
-rw-r--r-- | bin/pax/buf_subs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/buf_subs.c b/bin/pax/buf_subs.c index 6b818ca1f8c..aff311aa6f2 100644 --- a/bin/pax/buf_subs.c +++ b/bin/pax/buf_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf_subs.c,v 1.20 2004/04/16 22:50:23 deraadt Exp $ */ +/* $OpenBSD: buf_subs.c,v 1.21 2005/11/09 19:59:06 otto Exp $ */ /* $NetBSD: buf_subs.c,v 1.5 1995/03/21 09:07:08 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static const char sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94"; #else -static const char rcsid[] = "$OpenBSD: buf_subs.c,v 1.20 2004/04/16 22:50:23 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: buf_subs.c,v 1.21 2005/11/09 19:59:06 otto Exp $"; #endif #endif /* not lint */ @@ -677,7 +677,7 @@ rd_wrfile(ARCHD *arcn, int ofd, off_t *left) int rem; int sz = MINFBSZ; struct stat sb; - u_long crc = 0L; + u_int32_t crc = 0; /* * pass the blocksize of the file being written to the write routine, |