pkgsrc/comms/plp/patches/patch-ah
2004-09-08 12:47:39 +00:00

35 lines
994 B
Text

$NetBSD: patch-ah,v 1.2 2004/09/08 12:47:39 wiz Exp $
--- rfsv/rfsv32.cc.orig 1999-11-02 22:12:47.000000000 +0100
+++ rfsv/rfsv32.cc
@@ -183,7 +183,7 @@ int rfsv32::dir(const char* dirName, buf
us += modLow;
us /= 1000000;
us -= (1970*365 + 490)*60*60*24;
- long date = us;
+ time_t date = us;
char dateBuff[100];
struct tm *t;
t = gmtime(&date);
@@ -275,10 +275,10 @@ void rfsv32::opErr(long status) {
case BAD_HANDLE:
cerr << "BAD_HANDLE";
break;
- case OVERFLOW:
+ case E_OVERFLOW:
cerr << "OVERFLOW";
break;
- case UNDERFLOW:
+ case E_UNDERFLOW:
cerr << "UNDERFLOW";
break;
case ALREADY_EXISTS:
@@ -455,7 +455,7 @@ int rfsv32::write(const char* localName,
}
unsigned char * buff = new unsigned char [RFSV_SENDLEN];
while (ip &&!ip.eof()) {
- ip.read(buff, RFSV_SENDLEN);
+ ip.read((char *)buff, RFSV_SENDLEN);
bufferStore tmp(buff, ip.gcount());
if (tmp.getLen() == 0) break;
bufferStore a;