diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-25 10:15:31 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-25 10:15:31 +0000 |
commit | dcce39da3e6f7485dca39950dfc835563de3c3ea (patch) | |
tree | 0f0269e524cc83e41e4614e3c84abe3580ad2c9c /plugins/FTPFileYM/src/job_delete.cpp | |
parent | d395ad5aceb634b5ccfcb8d31b4b1574e557469e (diff) |
1 step: libcurl static link
git-svn-id: http://svn.miranda-ng.org/main/trunk@3763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/job_delete.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/job_delete.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/FTPFileYM/src/job_delete.cpp b/plugins/FTPFileYM/src/job_delete.cpp index f7d2c7c64b..8d0447c398 100644 --- a/plugins/FTPFileYM/src/job_delete.cpp +++ b/plugins/FTPFileYM/src/job_delete.cpp @@ -25,7 +25,6 @@ int DeleteJob::iRunningJobCount = 0; extern ServerList &ftpList;
extern Manager *manDlg;
-extern LibCurl &curl;
DeleteJob::DeleteJob(DBEntry *_entry, Manager::TreeItem *_item)
:entry(_entry),treeItem(_item),ftp(ftpList[entry->iFtpNum])
@@ -74,15 +73,15 @@ void DeleteJob::run() {
char szError[1024];
- CURL *hCurl = curl.easy_init();
+ CURL *hCurl = curl_easy_init();
if (hCurl)
{
struct curl_slist *headerList = NULL;
- headerList = curl.slist_append(headerList, getDelFileString());
+ headerList = curl_slist_append(headerList, getDelFileString());
Utils::curlSetOpt(hCurl, this->ftp, getDelUrlString(), headerList, szError);
- int result = curl.easy_perform(hCurl);
+ int result = curl_easy_perform(hCurl);
if (result == CURLE_OK)
{
if (manDlg != NULL && this->treeItem)
@@ -98,8 +97,8 @@ void DeleteJob::run() FREE(error);
}
- curl.slist_free_all(headerList);
- curl.easy_cleanup(hCurl);
+ curl_slist_free_all(headerList);
+ curl_easy_cleanup(hCurl);
}
}
|