-
Notifications
You must be signed in to change notification settings - Fork 3
/
ideviceinstaller.patch
35 lines (32 loc) · 1.43 KB
/
ideviceinstaller.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/configure.ac b/configure.ac
index 52d2a5d..3839896 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ if test "x${have_lstat}" = "xyes" ; then
AC_DEFINE([HAVE_LSTAT], 1, [Define if lstat syscall is supported])
fi
-AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g")
+AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -g")
AC_SUBST(GLOBAL_CFLAGS)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 0f9cc99..8384266 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -907,7 +907,7 @@ run_again:
dstpath = NULL;
zip_uint64_t zfsize = 0;
- while (zfsize < zs.size) {
+ while (zfsize < (zip_uint64_t)zs.size) {
zip_int64_t amount = zip_fread(zfile, buf, sizeof(buf));
if (amount == 0) {
break;
@@ -925,7 +925,7 @@ run_again:
total += written;
}
if (total != amount) {
- fprintf(stderr, "Error: wrote only %d of %" PRIi64 "\n", total, amount);
+ fprintf(stderr, "Error: wrote only %d of %" PRIi64 "\n", total, (long long)amount);
afc_file_close(afc, af);
zip_fclose(zfile);
free(dstpath);