From dcce39da3e6f7485dca39950dfc835563de3c3ea Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 25 Feb 2013 10:15:31 +0000 Subject: 1 step: libcurl static link git-svn-id: http://svn.miranda-ng.org/main/trunk@3763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/job_delete.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/FTPFileYM/src/job_delete.cpp') 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); } } -- cgit v1.2.3