summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-06-30 11:25:04 +0200
committerGravatar Nikias Bassen2023-06-30 11:25:04 +0200
commit9f9de528fe930f5248ed996659fdf5c22974928e (patch)
treef7bbd27cf8cc3d4272373e407251eb8f276503d2 /src
parent71ec5eaa30d2780c2614b6b227a2229ea3aeb1e9 (diff)
downloadideviceinstaller-9f9de528fe930f5248ed996659fdf5c22974928e.tar.gz
ideviceinstaller-9f9de528fe930f5248ed996659fdf5c22974928e.tar.bz2
Replace obsoleted zip_get_num_files with zip_get_num_entries
Diffstat (limited to 'src')
-rw-r--r--src/ideviceinstaller.c8
1 files changed, 4 insertions, 4 deletions
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/<name>.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;