fix: changed deprecated libcurl call
This commit is contained in:
parent
a309994b9e
commit
282605b0ac
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
|||
VERSION = 1.2.5
|
||||
|
||||
CFLAGS += -g -O2 -Wall -Wextra -Wshadow \
|
||||
-fanalyzer -Wno-analyzer-file-leak \
|
||||
-Wno-analyzer-file-leak \
|
||||
-rdynamic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\"\
|
||||
`pkg-config --cflags-only-I gumbo libcurl fuse uuid expat`
|
||||
LDFLAGS += `pkg-config --libs-only-L gumbo libcurl fuse uuid expat`
|
||||
|
|
|
@ -435,9 +435,9 @@ void Link_set_file_stat(Link *this_link, CURL *curl)
|
|||
lprintf(error, "%s", curl_easy_strerror(ret));
|
||||
}
|
||||
if (http_resp == HTTP_OK) {
|
||||
double cl = 0;
|
||||
curl_off_t cl = 0;
|
||||
ret =
|
||||
curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &cl);
|
||||
curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &cl);
|
||||
if (ret) {
|
||||
lprintf(error, "%s", curl_easy_strerror(ret));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue