From edda59e031862e189532c516fa7d40345b89f4f6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 19 Nov 2021 10:01:49 +0100 Subject: Fix compilation on Windows --- src/restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/restore.c') 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; } -- cgit v1.1-32-gdbae