Changeset af7e3d3 in mainline
- Timestamp:
- 2012-04-25T15:38:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a8b8086
- Parents:
- fa18523
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
rfa18523 raf7e3d3 352 352 fibril_mutex_unlock(&rtc->mutex); 353 353 354 /* Try to normalize the content of the tm structure */ 354 355 time_t r = mktime(t); 355 if (r < 0) 356 return EINVAL; 357 358 return EOK; 356 357 return r < 0 ? EINVAL : EOK; 359 358 } 360 359 … … 375 374 rtc_t *rtc = RTC_FROM_FNODE(fun); 376 375 376 /* Try to normalize the content of the tm structure */ 377 377 if (mktime(t) < 0) 378 378 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.