From 9f9de528fe930f5248ed996659fdf5c22974928e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 30 Jun 2023 11:25:04 +0200 Subject: Replace obsoleted zip_get_num_files with zip_get_num_entries --- src/ideviceinstaller.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 4b1b3d7..8f8b2a9 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -322,8 +322,8 @@ static int zip_get_contents(struct zip *zf, const char *filename, int locate_fla static int zip_get_app_directory(struct zip* zf, char** path) { - int i = 0; - int c = zip_get_num_files(zf); + zip_int64_t i = 0; + zip_int64_t c = (zip_int64_t)zip_get_num_entries(zf, 0); int len = 0; const char* name = NULL; @@ -1009,8 +1009,8 @@ run_again: printf("Uploading %s package contents... ", basename(ipcc)); /* extract the contents of the .ipcc file to PublicStaging/.ipcc directory */ - zip_uint64_t numzf = zip_get_num_entries(zf, 0); - zip_uint64_t i = 0; + zip_int64_t numzf = (zip_int64_t)zip_get_num_entries(zf, 0); + zip_int64_t i = 0; for (i = 0; numzf > 0 && i < numzf; i++) { const char* zname = zip_get_name(zf, i, 0); char* dstpath = NULL; -- cgit v1.1-32-gdbae