diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-03-09 10:00:29 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-03-09 10:00:29 +0000 |
commit | feb47a9f450e17818da09306e5a23b9d5060254d (patch) | |
tree | 7ae16e5fcd296514b30f0ca8d1f1c038938fea01 /lib/rfsv16.cc | |
parent | ffb722c76a449356c59c62cd4611c5e8f42047f8 (diff) | |
download | plptools-feb47a9f450e17818da09306e5a23b9d5060254d.tar.gz plptools-feb47a9f450e17818da09306e5a23b9d5060254d.tar.bz2 plptools-feb47a9f450e17818da09306e5a23b9d5060254d.zip |
Fix copyFrom() protos to agree better with the parent.
Diffstat (limited to 'lib/rfsv16.cc')
-rw-r--r-- | lib/rfsv16.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rfsv16.cc b/lib/rfsv16.cc index e920698..2474060 100644 --- a/lib/rfsv16.cc +++ b/lib/rfsv16.cc @@ -641,7 +641,7 @@ copyFromPsion(const char *from, const char *to, void *ptr, cpCallback_t cb) } Enum<rfsv::errs> rfsv16:: -copyFromPsion(const char *from, int fd, void *ptr, cpCallback_t cb) +copyFromPsion(const char *from, int fd, cpCallback_t cb) { Enum<rfsv::errs> res; u_int32_t handle; @@ -656,7 +656,7 @@ copyFromPsion(const char *from, int fd, void *ptr, cpCallback_t cb) if (len > 0) write(fd, buf, len); total += len; - if (cb && !cb(ptr, total)) + if (cb && !cb(NULL, total)) res = E_PSI_FILE_CANCEL; } } while (len > 0 && (res == E_PSI_GEN_NONE)); |