From 15b85554808e51d3009f3742b1800620a217b149 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 14 Feb 2019 00:32:13 +0100 Subject: Use uint64_t instead of off_t for win32/MinGW compatibility --- src/idevicerestore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/idevicerestore.c') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 66b1631..4c3c0e0 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -716,9 +716,9 @@ int idevicerestore_start(struct idevicerestore_client_t* client) memset(&st, '\0', sizeof(struct stat)); if (stat(tmpf, &st) == 0) { - off_t fssize = 0; + uint64_t fssize = 0; ipsw_get_file_size(client->ipsw, fsname, &fssize); - if ((fssize > 0) && (st.st_size == fssize)) { + if ((fssize > 0) && ((uint64_t)st.st_size == fssize)) { info("Using cached filesystem from '%s'\n", tmpf); filesystem = strdup(tmpf); } -- cgit v1.1-32-gdbae