summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-25 09:29:20 +0200
committerGravatar Martin Szulecki2011-04-25 09:29:20 +0200
commit7d7546510c77be1d11c207f53f37417442488758 (patch)
tree2f938f46112b95a28653931bb988c69622c34aa2
parentf18415854d426b703982119cacd981e75ac95308 (diff)
downloadideviceinstaller-7d7546510c77be1d11c207f53f37417442488758.tar.gz
ideviceinstaller-7d7546510c77be1d11c207f53f37417442488758.tar.bz2
Fix a compiler cast warning for printf format on 64bit systems by using inttypes.h
-rw-r--r--src/ideviceinstaller.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 3fcea18..3780979 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -32,6 +32,7 @@
#include <errno.h>
#include <time.h>
#include <libgen.h>
+#include <inttypes.h>
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
@@ -163,7 +164,7 @@ static int zip_f_get_contents(struct zip *zf, const char *filename, int locate_f
*buffer = malloc(zs.size);
if (zip_fread(zfile, *buffer, zs.size) != zs.size) {
- fprintf(stderr, "ERROR: zip_fread %lld bytes from '%s'\n", (uint64_t)zs.size, filename);
+ fprintf(stderr, "ERROR: zip_fread %" PRIu64 " bytes from '%s'\n", (uint64_t)zs.size, filename);
free(*buffer);
*buffer = NULL;
zip_fclose(zfile);