summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 16:21:18 +0200
committerGravatar Nikias Bassen2012-07-17 16:21:18 +0200
commit190a6b04c4f12ee20e7ae86cc3f280c63c2503f6 (patch)
tree51ada07ebf425d79b730e690763cd36902741a8f /src/idevicerestore.c
parent603f4cfca644c3afc75a4615f4b837e0bc6f3abf (diff)
downloadidevicerestore-190a6b04c4f12ee20e7ae86cc3f280c63c2503f6.tar.gz
idevicerestore-190a6b04c4f12ee20e7ae86cc3f280c63c2503f6.tar.bz2
Limit when downloading should show progress and when not
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 72a9bd1..bbd7462 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -104,7 +104,7 @@ static int load_version_data(struct idevicerestore_client_t* client)
if ((stat(VERSION_XML, &fst) < 0) || ((time(NULL)-86400) > fst.st_mtime)) {
__mkdir("cache", 0755);
- if (download_to_file("http://ax.itunes.apple.com/check/version", VERSION_XML ".tmp") == 0) {
+ if (download_to_file("http://ax.itunes.apple.com/check/version", VERSION_XML ".tmp", 0) == 0) {
remove(VERSION_XML);
if (rename(VERSION_XML ".tmp", VERSION_XML) < 0) {
error("ERROR: Could not update '" VERSION_XML "'\n");
@@ -301,7 +301,7 @@ int main(int argc, char* argv[]) {
sprintf(wtfipsw, "cache/%s", fnpart);
if (stat(wtfipsw, &fst) != 0) {
__mkdir("cache", 0755);
- download_to_file(s_wtfurl, wtfipsw);
+ download_to_file(s_wtfurl, wtfipsw, 0);
}
char wtfname[256];