summaryrefslogtreecommitdiff
path: root/src/app_mkpkg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_mkpkg.c')
-rw-r--r--src/app_mkpkg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/app_mkpkg.c b/src/app_mkpkg.c
index 82ba208..3c3972b 100644
--- a/src/app_mkpkg.c
+++ b/src/app_mkpkg.c
@@ -251,11 +251,10 @@ static int mkpkg_main(void *pctx, struct apk_ctx *ac, struct apk_string_array *a
size_t sz = adb_ro_int(&file, ADBI_FI_SIZE);
if (!APK_BLOB_IS_NULL(target)) continue;
if (!sz) continue;
- struct {
- uint32_t path_idx;
- uint32_t file_idx;
- } hdr = { i, j };
-
+ struct adb_data_package hdr = {
+ .path_idx = i,
+ .file_idx = j,
+ };
apk_pathbuilder_pushb(&ctx->pb, filename);
adb_c_block_data(
os, APK_BLOB_STRUCT(hdr), sz,