From 6d8617d42a1988bcc6543ac0c42fa2d998075b50 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 23 Jul 2007 09:42:32 +0000 Subject: If clock_ct_to_ts fails to convert time time from the real time clock, print a one line error message. Add some comments on not being able to trust the day of week field (I'll act on these comments in a follow up commit). Approved by: re MFC after: 3 weeks --- sys/kern/subr_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/subr_clock.c') diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index fe6adf9d79ba..b2f7827b5877 100644 --- a/sys/kern/subr_clock.c +++ b/sys/kern/subr_clock.c @@ -151,7 +151,7 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts) days += days_in_month(year, i); days += (ct->day - 1); - /* Another sanity check. */ + /* XXX Dow sanity check. Dow is not used, so should we check it? */ if (ct->dow != -1 && ct->dow != day_of_week(days)) return (EINVAL); -- cgit v1.2.3