diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-28 13:04:17 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-28 13:04:17 +0000 |
commit | 2ae2de93c35006b3fb0562ce1b9edce12bda4049 (patch) | |
tree | 6aea823a9b3d0e51eb94d1f225304e8f30945fd6 /src/tar.c | |
parent | c44db58c18963abe443e7ca42550dbf8adcb5496 (diff) | |
download | cpio-2ae2de93c35006b3fb0562ce1b9edce12bda4049.tar.gz cpio-2ae2de93c35006b3fb0562ce1b9edce12bda4049.tar.bz2 |
(tar_checksum): Return unsigned int
Diffstat (limited to 'src/tar.c')
-rw-r--r-- | src/tar.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -113,10 +113,10 @@ to_oct (register long value, register int digits, register char *where) /* Compute and return a checksum for TAR_HDR, counting the checksum bytes as if they were spaces. */ -unsigned long +unsigned int tar_checksum (struct tar_header *tar_hdr) { - unsigned long sum = 0; + unsigned int sum = 0; char *p = (char *) tar_hdr; char *q = p + TARRECORDSIZE; int i; |