Subject: another clock.c bug.
To: None <port-pc532@NetBSD.ORG>
From: Phil Nelson <phil@steelhead.cs.wwu.edu>
List: port-pc532
Date: 01/01/1995 23:15:51
I just discovered yet another bug in src/sys/arch/pc532/pc532/clock.c.
This bug makes the date advance one day for every boot you have in
1995.  I have had to reset the date before every shutdown to get
the correct date on reboot.   The fix is simple ...

The line in ytos() that includes "LEAPYEAR(i)" should say
"LEAPYEAR(70+i)".

(Yes, it thinks 94 was a leap year and adds one extra day that
wasn't there.)

--Phil