diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2007-07-23 09:42:32 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2007-07-23 09:42:32 +0000 |
commit | e8276674f3dc77e497ee2600cd45f51e731c6dab (patch) | |
tree | 9e35e0b6e5b6c0c6047ac01c3aa7bf287ef1c85d /sys/kern/subr_clock.c | |
parent | 9f42d6219fe8097ea3b6faf2beb93af539c11208 (diff) | |
download | FreeBSD-src-e8276674f3dc77e497ee2600cd45f51e731c6dab.zip FreeBSD-src-e8276674f3dc77e497ee2600cd45f51e731c6dab.tar.gz |
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
Diffstat (limited to 'sys/kern/subr_clock.c')
-rw-r--r-- | sys/kern/subr_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index fe6adf9..b2f7827 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); |