summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ustar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ustar.c b/src/ustar.c
index 5fdcd1e..416bb2f 100644
--- a/src/ustar.c
+++ b/src/ustar.c
@@ -78,7 +78,7 @@ _opkg_opk_ustar_next(struct opkg_opk_ustar *ustar,
char *end;
uint32_t chksum_got;
uint32_t chksum_exp;
- int i;
+ size_t i;
unsigned char *header_uc;
switch (opkg_opk_gzip_read(ustar->gzip, header)) {
@@ -106,7 +106,7 @@ _opkg_opk_ustar_next(struct opkg_opk_ustar *ustar,
for (i = 0; i < sizeof(header->chksum); ++i) {
header->chksum[i] = ' ';
}
- header_uc = header;
+ header_uc = (unsigned char *) header;
for (i = 0; i < OPKG_OPK_USTAR_RECORD_SIZE; ++i) {
chksum_exp += header_uc[i];
}