X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhttp.c;h=abaa4bdb34e3f31ddb344e0a8f234c07a46462c0;hb=9228f0bf53d3b42459daeb28372196a007de3014;hp=7c8280c1a20daa798a4e578147c96a083d1509dd;hpb=b2be7522c745827b521a8ed535201427df32eec7;p=wget diff --git a/src/http.c b/src/http.c index 7c8280c1..abaa4bdb 100644 --- a/src/http.c +++ b/src/http.c @@ -584,7 +584,7 @@ struct http_stat char *remote_time; /* remote time-stamp string */ char *error; /* textual HTTP error */ int statcode; /* status code */ - long dltime; /* time of the download */ + double dltime; /* time of the download in msecs */ int no_truncate; /* whether truncating the file is forbidden. */ const char *referer; /* value of the referer header. */ @@ -765,7 +765,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy) address_list_release (al); if (sock < 0) - return errno == ECONNREFUSED ? CONREFUSED : CONERROR; + return CONNECT_ERROR (errno); #ifdef HAVE_SSL if (conn->scheme == SCHEME_HTTPS) @@ -1614,12 +1614,12 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer, hstat.local_file = local_file; else if (local_file) { - *local_file = url_filename (u); + *local_file = url_file_name (u); hstat.local_file = local_file; } else { - dummy = url_filename (u); + dummy = url_file_name (u); hstat.local_file = &dummy; }