From 1086db865ee04febf929f0708e7428fda45f38db Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 25 Aug 2012 00:17:04 +0200 Subject: Fix some printf compiler warnings --- src/ideviceinstaller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index de6cb5c..8f5ec5e 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -566,7 +566,7 @@ run_again: struct zip_stat zs; zip_stat_init(&zs); if (zip_stat_index(zf, i, 0, &zs) != 0) { - fprintf(stderr, "ERROR: zip_stat_index %ld failed!\n", i); + fprintf(stderr, "ERROR: zip_stat_index %" PRIu64 " failed!\n", i); free(dstpath); dstpath = NULL; zip_fclose(zfile); @@ -595,7 +595,7 @@ run_again: total += written; } if (total != amount) { - fprintf(stderr, "Error: wrote only %d of %zu\n", total, amount); + fprintf(stderr, "Error: wrote only %d of %" PRIi64 "\n", total, amount); afc_file_close(afc, af); zip_fclose(zfile); free(dstpath); -- cgit v1.1-32-gdbae