summaryrefslogtreecommitdiff
path: root/comms/ifcico-cm/patches/patch-am
blob: 76aedb2c3931e917c9d2f9303d5aafbe3ff0556f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-am,v 1.1 1998/12/21 15:45:21 tv Exp $

--- iflib/callstat.c.orig	Mon Dec 21 09:36:24 1998
+++ iflib/callstat.c	Mon Dec 21 09:37:08 1998
@@ -21,7 +21,7 @@
 
 	if ((fp=fopen(stsname(addr,'f'),"r")))
 	{
-		fscanf(fp,"%lu %u %u",&st.trytime,&st.tryno,&st.trystat);
+		fscanf(fp,"%u %u %u",&st.trytime,&st.tryno,&st.trystat);
 		fclose(fp);
 	}
 
@@ -44,7 +44,7 @@
 		else st.tryno+=incr;
 		st.trystat=sts;
 		(void)time(&st.trytime);
-		fprintf(fp,"%lu %u %u\n",
+		fprintf(fp,"%u %u %u\n",
 			st.trytime,st.tryno,(unsigned)st.trystat);
 		fclose(fp);
 	}