diff options
author | Nikias Bassen | 2024-05-13 19:55:42 +0200 |
---|---|---|
committer | Nikias Bassen | 2024-05-13 19:55:42 +0200 |
commit | 4323f9abf276a47f33a6cfee1902976e9e99d520 (patch) | |
tree | c2f58d995ade4de4308711900edbf1dd1773fdb3 /src | |
parent | 8148487b2994e29c4e4f4d6a2633defa2f816e04 (diff) | |
download | ideviceinstaller-4323f9abf276a47f33a6cfee1902976e9e99d520.tar.gz ideviceinstaller-4323f9abf276a47f33a6cfee1902976e9e99d520.tar.bz2 |
Revert "Fix compilation with updated libplist API"
This reverts commit 9fdf17c55f8a5828673566e620c4dc111c0ed23c.
Diffstat (limited to 'src')
-rw-r--r-- | src/ideviceinstaller.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index d6c10a8..c50bacf 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -1216,7 +1216,7 @@ run_again: size_t flen = 0; zbuf = buf_from_file(extmeta, &flen); if (zbuf && flen) { - meta = plist_new_data((uint8_t*)zbuf, flen); + meta = plist_new_data(zbuf, flen); plist_from_memory(zbuf, flen, &meta_dict, NULL); free(zbuf); } @@ -1231,7 +1231,7 @@ run_again: if (!meta && !meta_dict) { /* extract iTunesMetadata.plist from package */ if (zip_get_contents(zf, ITUNES_METADATA_PLIST_FILENAME, 0, &zbuf, &len) == 0) { - meta = plist_new_data((uint8_t*)zbuf, len); + meta = plist_new_data(zbuf, len); plist_from_memory(zbuf, len, &meta_dict, NULL); } if (!meta_dict) { @@ -1304,7 +1304,7 @@ run_again: size_t flen = 0; zbuf = buf_from_file(extsinf, &flen); if (zbuf && flen) { - sinf = plist_new_data((uint8_t*)zbuf, flen); + sinf = plist_new_data(zbuf, flen); free(zbuf); } else { fprintf(stderr, "WARNING: could not load external SINF %s!\n", extsinf); @@ -1324,7 +1324,7 @@ run_again: zbuf = NULL; len = 0; if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) { - sinf = plist_new_data((uint8_t*)zbuf, len); + sinf = plist_new_data(zbuf, len); } else { fprintf(stderr, "WARNING: could not locate %s in archive!\n", sinfname); } |