diff options
-rw-r--r-- | sys/i386/isa/clock.c | 3 | ||||
-rw-r--r-- | sys/isa/atrtc.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index a519a9e..4b848c4 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -703,7 +703,8 @@ inittodr(time_t base) #else ct.year += 2000; #endif - /* 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/isa/atrtc.c b/sys/isa/atrtc.c index a519a9e..4b848c4 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -703,7 +703,8 @@ inittodr(time_t base) #else ct.year += 2000; #endif - /* 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; |