summaryrefslogtreecommitdiff
path: root/comms/ifcico-cm/patches/patch-as
blob: f85dd4e91d11c163ef979fe4c1d4583891b80229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-as,v 1.2 2001/02/21 18:50:37 tv Exp $

--- ifcico/tcpproto.c.orig	Sun Dec 29 10:26:28 1996
+++ ifcico/tcpproto.c	Wed Feb 21 10:55:13 2001
@@ -31,7 +31,8 @@
 static char txbuf[2048];
 static char rxbuf[2048];
 static int rx_type;
-static long startime,endtime,rxbytes,sbytes;
+static time_t startime,endtime;
+static off_t rxbytes,sbytes;
 
 static int sendfile(char *,char *);
 static int finsend(void);
@@ -175,7 +176,7 @@
 	}
 
 	sprintf(txbuf,"S %s %lu %lu",
-		rn,st.st_size, (unsigned long) st.st_mtime);
+		rn, (unsigned long)st.st_size, (unsigned long)st.st_mtime);
 	bufl=strlen(txbuf);
 	rc=tcp_sblk(txbuf,bufl,TCP_CMD);
 	rc=tcp_rblk(rxbuf,&bufl);