diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-18 09:23:05 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-18 09:23:05 (EDT) |
commit | 5f6f1f98f117355b8cdc889325fdb8e4ac8c898d (patch) | |
tree | 34ad10b707a4835f7a92dc3f11221dae93f72697 /src | |
parent | 84e30f4ee91be8f25aa5be3763f5b9a1c8aaae73 (diff) |
ustar: Fix a couple warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/ustar.c | 4 |
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]; } |