diff options
author | Nikias Bassen | 2019-02-14 00:32:13 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-02-14 00:32:13 +0100 |
commit | 15b85554808e51d3009f3742b1800620a217b149 (patch) | |
tree | ee967016fe79cf8d236a7f1e0473deea9e651083 /src/download.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/download.c')
-rw-r--r-- | src/download.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/download.c b/src/download.c index e09d911..b50abc1 100644 --- a/src/download.c +++ b/src/download.c @@ -2,8 +2,8 @@ * download.c * file download helper functions * + * Copyright (c) 2012-2019 Nikias Bassen. All Rights Reserved. * Copyright (c) 2012-2013 Martin Szulecki. All Rights Reserved. - * Copyright (c) 2012 Nikias Bassen. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -146,7 +146,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress) #endif fclose(f); - if ((sz == 0) || (sz == (off_t)-1)) { + if ((sz == 0) || ((int64_t)sz == (int64_t)-1)) { res = -1; remove(filename); } |