Skip to content

Commit

Permalink
Fix curl deprecation warning (CURLOPT_PROGRESSFUNCTION) (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 authored Feb 5, 2025
1 parent 9646a7e commit b9d6539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared_lib/sources/platform/posix/miniftpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getFileFromServer(FTP_Clien
curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 1);
}
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, file_progress);
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, file_progress);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &ftpfile);

// Max 10 minutes to transfer
Expand Down

0 comments on commit b9d6539

Please sign in to comment.