summaryrefslogtreecommitdiff
path: root/src/mgr/ftplibftpt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgr/ftplibftpt.cpp')
-rw-r--r--src/mgr/ftplibftpt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mgr/ftplibftpt.cpp b/src/mgr/ftplibftpt.cpp
index f1d1655..fae5964 100644
--- a/src/mgr/ftplibftpt.cpp
+++ b/src/mgr/ftplibftpt.cpp
@@ -2,7 +2,7 @@
*
* ftplibftpt.cpp - FTPLibFTPTransport
*
- * $Id: ftplibftpt.cpp 2983 2013-09-15 16:22:32Z scribe $
+ * $Id: ftplibftpt.cpp 3439 2016-10-23 08:32:02Z scribe $
*
* Copyright 2004-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -42,10 +42,10 @@ namespace {
static int my_swbufwriter(netbuf *nControl, void *buffer, size_t size, void *swbuf) {
SWBuf &output = *(SWBuf *)swbuf;
- int s = output.size();
+ int s = (int)output.size();
output.size(s+size);
memcpy(output.getRawData()+s, buffer, size);
- return size;
+ return (int)size;
}
#if defined(__GNUC__)
@@ -56,9 +56,9 @@ namespace {
static int my_fprogress(netbuf *nControl, int xfered, void *arg) {
if (arg) {
MyProgressData *pd = (MyProgressData *)arg;
- SWLog::getSystemLog()->logDebug("FTPLibFTPTransport report progress: totalSize: %ld; xfered: %d\n", pd->totalSize, xfered);
+//SWLog::getSystemLog()->logDebug("FTPLibFTPTransport report progress: totalSize: %ld; xfered: %d\n", pd->totalSize, xfered);
if (pd->sr) {
- pd->sr->statusUpdate(pd->totalSize, xfered);
+ pd->sr->update(pd->totalSize, xfered);
}
if (*(pd->term)) return 0;
}