summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 14:52:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 14:52:32 +0100
commit80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e (patch)
tree7a918cf24387674f602cc71d0dc6a57dff808fc6 /lib/Plugins/FileTransfer.cpp
parentaf0053c1e3fe0cf938b7ad0ac26058a18e7e2c44 (diff)
downloadabrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.tar.gz
abrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.tar.xz
abrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.zip
lib/Plugins/FileTransfer: massive surgery
text data bss dec hex filename 50212 2144 16 52372 cc94 0/libTicketUploader.so 34693 1888 24 36605 8efd 1/libTicketUploader.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/FileTransfer.cpp')
-rw-r--r--lib/Plugins/FileTransfer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp
index 6d55b86..856a326 100644
--- a/lib/Plugins/FileTransfer.cpp
+++ b/lib/Plugins/FileTransfer.cpp
@@ -96,13 +96,11 @@ void CFileTransfer::SendFile(const char *pURL, const char *pFilename)
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/* specify target */
curl_easy_setopt(curl, CURLOPT_URL, wholeURL.c_str());
- /*file handle: passed to the default callback, it will fread() it*/
+ /* FILE handle: passed to the default callback, it will fread() it */
curl_easy_setopt(curl, CURLOPT_READDATA, f);
- /*get file size*/
curl_easy_setopt(curl, CURLOPT_INFILESIZE, buf.st_size);
- /*everything is done here; result 0 means success*/
+ /* everything is done here; result 0 means success */
result = curl_easy_perform(curl);
- /*goodbye*/
curl_easy_cleanup(curl);
fclose(f);
}