summaryrefslogtreecommitdiffstats
path: root/src/restore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-11-19 10:01:49 +0100
committerGravatar Nikias Bassen2021-11-19 10:01:49 +0100
commitedda59e031862e189532c516fa7d40345b89f4f6 (patch)
tree083a56e2415d88711dbdd4a4f9b7f2ecae63f693 /src/restore.c
parent7fdd29bb8c779a66d2ea74694a08c48b81c076ec (diff)
downloadidevicerestore-edda59e031862e189532c516fa7d40345b89f4f6.tar.gz
idevicerestore-edda59e031862e189532c516fa7d40345b89f4f6.tar.bz2
Fix compilation on Windows
Diffstat (limited to 'src/restore.c')
-rw-r--r--src/restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/restore.c b/src/restore.c
index ff1e43e..13c3625 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -2878,7 +2878,7 @@ static int restore_bootability_send_one(void *ctx, const char *ipsw, const char
subpath = name + strlen(prefix);
}
- debug("DEBUG: BootabilityBundle send m=%07o s=%10ld %s\n", stat->st_mode, stat->st_size, subpath);
+ debug("DEBUG: BootabilityBundle send m=%07o s=%10ld %s\n", stat->st_mode, (long)stat->st_size, subpath);
unsigned char *buf = NULL;
unsigned int size = 0;
@@ -2886,7 +2886,7 @@ static int restore_bootability_send_one(void *ctx, const char *ipsw, const char
if ((S_ISLNK(stat->st_mode) || S_ISREG(stat->st_mode)) && stat->st_size != 0) {
ipsw_extract_to_memory(ipsw, name, &buf, &size);
if (size != stat->st_size) {
- error("ERROR: expected %ld bytes but got %d for file %s\n", stat->st_size, size, name);
+ error("ERROR: expected %ld bytes but got %d for file %s\n", (long)stat->st_size, size, name);
free(buf);
return -1;
}