diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-05-24 16:09:35 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-05-24 16:09:35 +0000 |
commit | a44632021b6f3159b6a189b79ed3a4624a3deb2f (patch) | |
tree | e56ac17b65670f25b014b278f58871a5557175e1 /comms/plptools/patches/patch-ak | |
parent | c2e15276bbb9a69edbe2f3d362869e31c2be76af (diff) | |
download | pkgsrc-a44632021b6f3159b6a189b79ed3a4624a3deb2f.tar.gz |
Fix some C++ issues that gcc 3.3 complains on.
Diffstat (limited to 'comms/plptools/patches/patch-ak')
-rw-r--r-- | comms/plptools/patches/patch-ak | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/comms/plptools/patches/patch-ak b/comms/plptools/patches/patch-ak new file mode 100644 index 00000000000..8d033e690f6 --- /dev/null +++ b/comms/plptools/patches/patch-ak @@ -0,0 +1,22 @@ +$NetBSD: patch-ak,v 1.1 2004/05/24 16:09:35 kristerw Exp $ + +--- lib/rfsv16.cc.orig 2004-05-24 17:43:42.000000000 +0200 ++++ lib/rfsv16.cc 2004-05-24 17:45:56.000000000 +0200 +@@ -670,7 +670,7 @@ + do { + unsigned char buf[2000]; + if ((len = fread(handle, buf, sizeof(buf))) > 0) +- op.write(buf, len); ++ op.write((char*)buf, len); + if (cb) { + if (!cb(len)) { + len = E_PSI_FILE_CANCEL; +@@ -703,7 +703,7 @@ + unsigned char *buff = new unsigned char[RFSV_SENDLEN]; + int total = 0; + while (ip && !ip.eof()) { +- ip.read(buff, RFSV_SENDLEN); ++ ip.read((char*)buff, RFSV_SENDLEN); + bufferStore tmp(buff, ip.gcount()); + int len = tmp.getLen(); + total += len; |