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
|
$NetBSD: patch-am,v 1.2 2001/02/21 18:50:37 tv Exp $
--- iflib/callstat.c.orig Sun Oct 2 09:08:01 1994
+++ iflib/callstat.c Wed Feb 21 10:40:23 2001
@@ -21,7 +21,10 @@
if ((fp=fopen(stsname(addr,'f'),"r")))
{
- fscanf(fp,"%lu %u %u",&st.trytime,&st.tryno,&st.trystat);
+ unsigned long trytime;
+
+ fscanf(fp,"%lu %u %u",&trytime,&st.tryno,&st.trystat);
+ st.trytime = trytime;
fclose(fp);
}
@@ -45,7 +48,7 @@
st.trystat=sts;
(void)time(&st.trytime);
fprintf(fp,"%lu %u %u\n",
- st.trytime,st.tryno,(unsigned)st.trystat);
+ (unsigned long)st.trytime,st.tryno,(unsigned)st.trystat);
fclose(fp);
}
else
|