X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=9e5074a1197ae3b33b31b6f766285fbef5fec52e;hp=0866f92287bc9a106d2c117e9f9ff05c9ead5a63;hb=f33c27562106ccbd12f7fcdeb6f38aa153183463;hpb=47bf277fb5fc7c223601c3cae6646d9121c31553 diff --git a/src/http.c b/src/http.c index 0866f922..9e5074a1 100644 --- a/src/http.c +++ b/src/http.c @@ -142,6 +142,8 @@ struct request { int hcount, hcapacity; }; +extern int numurls; + /* Create a new, empty request. At least request_set_method must be called before the request can be used. */ @@ -2760,7 +2762,7 @@ Remote file exists.\n\n")); number_to_static_string (hstat.contlen), hstat.local_file, count); } - ++opt.numurls; + ++numurls; total_downloaded_bytes += hstat.len; /* Remember that we downloaded the file for later ".orig" code. */ @@ -2788,7 +2790,7 @@ Remote file exists.\n\n")); tms, u->url, number_to_static_string (hstat.len), hstat.local_file, count); } - ++opt.numurls; + ++numurls; total_downloaded_bytes += hstat.len; /* Remember that we downloaded the file for later ".orig" code. */