blob: c49a1f1e5d99f4cd538217bfce9676e256b837a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$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;
|