diff options
author | 2019-02-14 00:32:13 +0100 | |
---|---|---|
committer | 2019-02-14 00:32:13 +0100 | |
commit | 15b85554808e51d3009f3742b1800620a217b149 (patch) | |
tree | ee967016fe79cf8d236a7f1e0473deea9e651083 /src/ipsw.c | |
parent | 4a1c7c75519ffe77d8540e056e31fcfe17f1d3fd (diff) | |
download | idevicerestore-15b85554808e51d3009f3742b1800620a217b149.tar.gz idevicerestore-15b85554808e51d3009f3742b1800620a217b149.tar.bz2 |
Use uint64_t instead of off_t for win32/MinGW compatibility
Diffstat (limited to 'src/ipsw.c')
-rw-r--r-- | src/ipsw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ int ipsw_is_directory(const char* ipsw) return S_ISDIR(fst.st_mode); } -int ipsw_get_file_size(const char* ipsw, const char* infile, off_t* size) +int ipsw_get_file_size(const char* ipsw, const char* infile, uint64_t* size) { ipsw_archive* archive = ipsw_open(ipsw); if (archive == NULL) { @@ -188,7 +188,7 @@ int ipsw_extract_to_file_with_progress(const char* ipsw, const char* infile, con return -1; } - off_t i, bytes = 0; + uint64_t i, bytes = 0; int count, size = BUFSIZE; double progress; for(i = zstat.size; i > 0; i -= count) { |