mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
MFp4:
Fix typo in RTC_CALR_MK.
This commit is contained in:
parent
92c23aea4a
commit
fa543fe2fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160362
@ -74,7 +74,7 @@
|
||||
#define RTC_CALR_DAY_S 24
|
||||
#define RTC_CALR_DAY(x) FROMBCD(((x) & RTC_CALR_DAY_M) >> RTC_CALR_DAY_S)
|
||||
#define RTC_CALR_MK(yr, mon, day, dow) \
|
||||
((TOBCD((yr) / 100 + 19) << RTC_CALR_CENTURY_S) | \
|
||||
((TOBCD((yr) / 100 + 19) << RTC_CALR_CEN_S) | \
|
||||
(TOBCD((yr) % 100) << RTC_CALR_YEAR_S) | \
|
||||
(TOBCD(mon) << RTC_CALR_MON_S) | \
|
||||
(TOBCD(dow) << RTC_CALR_DOW_S) | \
|
||||
|
Loading…
Reference in New Issue
Block a user