aboutsummaryrefslogtreecommitdiff
path: root/src/tar.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-10-28 13:04:17 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-10-28 13:04:17 +0000
commit2ae2de93c35006b3fb0562ce1b9edce12bda4049 (patch)
tree6aea823a9b3d0e51eb94d1f225304e8f30945fd6 /src/tar.c
parentc44db58c18963abe443e7ca42550dbf8adcb5496 (diff)
downloadcpio-2ae2de93c35006b3fb0562ce1b9edce12bda4049.tar.gz
cpio-2ae2de93c35006b3fb0562ce1b9edce12bda4049.tar.bz2
(tar_checksum): Return unsigned int
Diffstat (limited to 'src/tar.c')
-rw-r--r--src/tar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tar.c b/src/tar.c
index 69bda7d..180b9df 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.