summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-02-14 00:32:13 +0100
committerGravatar Nikias Bassen2019-02-14 00:32:13 +0100
commit15b85554808e51d3009f3742b1800620a217b149 (patch)
treeee967016fe79cf8d236a7f1e0473deea9e651083 /src/idevicerestore.c
parent4a1c7c75519ffe77d8540e056e31fcfe17f1d3fd (diff)
downloadidevicerestore-15b85554808e51d3009f3742b1800620a217b149.tar.gz
idevicerestore-15b85554808e51d3009f3742b1800620a217b149.tar.bz2
Use uint64_t instead of off_t for win32/MinGW compatibility
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
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);
}