The following commit has been merged in the master branch:
commit 835741f632e884ccd973d87e128c9846dd3e1d4c
Author: Guillem Jover <[email protected]>
Date: Mon Nov 1 20:50:58 2010 +0100
libdpkg: Move checksum_offset into tar_header_checksum()
diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c
index 3595528..55c0495 100644
--- a/lib/dpkg/tarfn.c
+++ b/lib/dpkg/tarfn.c
@@ -59,8 +59,6 @@ struct tar_header {
char prefix[155];
};
-static const size_t checksum_offset = offsetof(struct tar_header, checksum);
-
/**
* Convert an ASCII octal string to a long.
*/
@@ -163,6 +161,7 @@ tar_header_checksum(struct tar_header *h)
{
unsigned char *s = (unsigned char *)h;
unsigned int i;
+ const size_t checksum_offset = offsetof(struct tar_header, checksum);
long checksum;
long sum;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]