diff options
author | Fritz Elfert <felfert@to.com> | 2002-07-14 06:35:33 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-07-14 06:35:33 +0000 |
commit | f9e740af36b44a1c9e834dc8fff08fba8fb1b13f (patch) | |
tree | 8b84b4ffcb235224f8de1761fdd59446f155281d /lib/rfsv16.cc | |
parent | 97984a6f290d1bd87aaba317c47c70a14b1c0b31 (diff) | |
download | plptools-f9e740af36b44a1c9e834dc8fff08fba8fb1b13f.tar.gz plptools-f9e740af36b44a1c9e834dc8fff08fba8fb1b13f.tar.bz2 plptools-f9e740af36b44a1c9e834dc8fff08fba8fb1b13f.zip |
Applied patches from debian bug #104967 (not yet tested)
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)) |