[sword-svn] r3815 - trunk/src/mgr
scribe at crosswire.org
scribe at crosswire.org
Sun Oct 18 18:20:31 EDT 2020
Author: scribe
Date: 2020-10-18 18:20:30 -0400 (Sun, 18 Oct 2020)
New Revision: 3815
Modified:
trunk/src/mgr/ftplibftpt.cpp
Log:
Fix compile error in FTPLibFTPTransport to use FileMgr::write instead of ::write
Added extra cast (int)(size_t) to avoid stupid clang error that doesn't like void * being cast (int) directly to an int.
Modified: trunk/src/mgr/ftplibftpt.cpp
===================================================================
--- trunk/src/mgr/ftplibftpt.cpp 2020-10-17 18:09:17 UTC (rev 3814)
+++ trunk/src/mgr/ftplibftpt.cpp 2020-10-18 22:20:30 UTC (rev 3815)
@@ -49,8 +49,8 @@
}
static int my_filewriter(netbuf *nControl, void *buffer, size_t size, void *fd) {
- int output = (int)fd;
- write(output, buffer, size);
+ int output = (int)(size_t)fd;
+ FileMgr::write(output, buffer, size);
return (int)size;
}
More information about the sword-cvs
mailing list