Changeset a44b58c in mainline
- Timestamp:
- 2012-04-18T20:31:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e341110
- Parents:
- bfc5577a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
rbfc5577a ra44b58c 402 402 } 403 403 404 if (rtc_register_read(rtc, RTC_YEAR) < 100) { 405 /* The RTC epoch is year 2000 */ 404 if (epoch == 2000) { 405 /* The RTC epoch is year 2000 but the tm_year 406 * field counts years since 1900. 407 */ 406 408 t->tm_year -= 100; 407 409 } … … 467 469 else if (epoch == 2000 && t->tm_year < 100) 468 470 return EINVAL; 469 else if (t->tm_year < 0 )471 else if (t->tm_year < 0 || t->tm_year > 199) 470 472 return EINVAL; 471 473
Note:
See TracChangeset
for help on using the changeset viewer.