diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-26 10:35:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-26 10:35:06 +0000 |
commit | 475b18b6800f10292c1c17c5d041a62c922a4497 (patch) | |
tree | 043a3a22a59573dea290dab5203652ab18860af4 /sys/dev/wscons | |
parent | aca69f099f7aede18763fc486641b16058601bb9 (diff) |
Sanitize inittodr()/resettodr() implementation.
- move implementations next to eachother in the same file
- remove pointless call to resettodr() in inittodr()
- use OpenBSD define to get a minimum plausible time
- if RTC time is before minimum plausible time, reject it
- don't print "clock gained N days" on ramdisk
Hopefully this implementation can serve as a model for unification
into an MI implementation.
ok mpi@
Diffstat (limited to 'sys/dev/wscons')
0 files changed, 0 insertions, 0 deletions