The following commit has been merged in the master branch:
commit 58a9ff2596fa722f230eee97bfa65c5d6218f479
Author: Guillem Jover <[email protected]>
Date: Mon Nov 1 20:30:53 2010 +0100
libdpkg: Rename TarChecksumOffset to checksum_offset
diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c
index 658324c..3d61502 100644
--- a/lib/dpkg/tarfn.c
+++ b/lib/dpkg/tarfn.c
@@ -59,7 +59,7 @@ struct tar_header {
char prefix[155];
};
-static const size_t TarChecksumOffset = offsetof(struct tar_header, checksum);
+static const size_t checksum_offset = offsetof(struct tar_header, checksum);
/**
* Convert an ASCII octal string to a long.
@@ -210,12 +210,11 @@ DecodeTarHeader(char *block, struct tar_entry *d)
/* Treat checksum field as all blank. */
sum = ' ' * sizeof(h->checksum);
- for (i = TarChecksumOffset; i > 0; i--)
+ for (i = checksum_offset; i > 0; i--)
sum += *s++;
/* Skip the real checksum field. */
s += sizeof(h->checksum);
- for (i = (TARBLKSZ - TarChecksumOffset - sizeof(h->checksum));
- i > 0; i--)
+ for (i = TARBLKSZ - checksum_offset - sizeof(h->checksum); i > 0; i--)
sum += *s++;
return (sum == checksum);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]