diff options
| author | David Malone <dwmalone@FreeBSD.org> | 2007-07-29 20:16:48 +0000 |
|---|---|---|
| committer | David Malone <dwmalone@FreeBSD.org> | 2007-07-29 20:16:48 +0000 |
| commit | c848e0de55e461659cc530dca5862241ea4d583c (patch) | |
| tree | 8045af4e43b84240d4645ebbacb431c5a181c9f9 | |
| parent | e251d2f4f640c00de8ca7561a2e09f9df926d8a2 (diff) | |
Notes
| -rw-r--r-- | sys/pc98/cbus/clock.c | 3 | ||||
| -rw-r--r-- | sys/pc98/cbus/pcrtc.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 7b993dc545b6..037ef402ca79 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -638,7 +638,8 @@ inittodr(time_t base) ct.year = bcd2bin(rtc_inb() & 0xff) + 1900; /* year */ if (ct.year < 1995) ct.year += 100; - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return; diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c index 7b993dc545b6..037ef402ca79 100644 --- a/sys/pc98/cbus/pcrtc.c +++ b/sys/pc98/cbus/pcrtc.c @@ -638,7 +638,8 @@ inittodr(time_t base) ct.year = bcd2bin(rtc_inb() & 0xff) + 1900; /* year */ if (ct.year < 1995) ct.year += 100; - /* Should we set dow = -1 because some clocks don't set it correctly? */ + /* Set dow = -1 because some clocks don't set it correctly. */ + ct.dow = -1; if (clock_ct_to_ts(&ct, &ts)) { printf("Invalid time in clock: check and reset the date!\n"); return; |
