Fix an XXX comment by answering 'no'. OS X does not set the day-of-week
counter on SMU-based systems, which causes FreeBSD to reject the RTC time when used in a dual-boot environment. Since we don't use the day-of-week counter anyway, solve this by just not checking that it matches. MFC after: 3 weeks
This commit is contained in:
parent
17f3c8f1e3
commit
c8593f7c4d
@ -164,10 +164,6 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts)
|
||||
days += days_in_month(year, i);
|
||||
days += (ct->day - 1);
|
||||
|
||||
/* 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);
|
||||
|
||||
/* Add hours, minutes, seconds. */
|
||||
secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user