diff options
Diffstat (limited to 'lib/rfsv16.cc')
-rw-r--r-- | lib/rfsv16.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index c8e50a0..09b78e2 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -40,6 +40,8 @@ #define RFSV16_MAXDATALEN 852 // 640 +using namespace std; + rfsv16::rfsv16(ppsocket *_skt) { serNum = 0; @@ -583,7 +585,7 @@ copyFromPsion(const char *from, const char *to, void *ptr, cpCallback_t cb) unsigned char buf[RFSV_SENDLEN]; if ((res = fread(handle, buf, sizeof(buf), len)) == E_PSI_GEN_NONE) { if (len > 0) - op.write(buf, len); + op.write((char *)buf, len); total += len; if (cb && !cb(ptr, total)) res = E_PSI_FILE_CANCEL; @@ -643,7 +645,7 @@ copyToPsion(const char *from, const char *to, void *ptr, cpCallback_t cb) } unsigned char *buff = new unsigned char[RFSV_SENDLEN]; while (res == E_PSI_GEN_NONE && ip && !ip.eof()) { - ip.read(buff, RFSV_SENDLEN); + ip.read((char *)buff, RFSV_SENDLEN); if ((res = fwrite(handle, buff, ip.gcount(), len)) == E_PSI_GEN_NONE) { total += len; if (cb && !cb(ptr, total)) |