Changeset b7fd2a0 in mainline for uspace/lib/c/generic/device/clock_dev.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/device/clock_dev.c
r36f0738 rb7fd2a0 46 46 * @return EOK on success or an error code 47 47 */ 48 int48 errno_t 49 49 clock_dev_time_get(async_sess_t *sess, struct tm *t) 50 50 { 51 51 aid_t req; 52 int ret;52 errno_t ret; 53 53 54 54 async_exch_t *exch = async_exchange_begin(sess); … … 60 60 async_exchange_end(exch); 61 61 62 int rc;62 errno_t rc; 63 63 if (ret != EOK) { 64 64 async_forget(req); … … 67 67 68 68 async_wait_for(req, &rc); 69 return ( int)rc;69 return (errno_t)rc; 70 70 } 71 71 … … 77 77 * @return EOK on success or an error code 78 78 */ 79 int79 errno_t 80 80 clock_dev_time_set(async_sess_t *sess, struct tm *t) 81 81 { 82 82 aid_t req; 83 int ret;83 errno_t ret; 84 84 85 85 async_exch_t *exch = async_exchange_begin(sess); … … 91 91 async_exchange_end(exch); 92 92 93 int rc;93 errno_t rc; 94 94 if (ret != EOK) { 95 95 async_forget(req); … … 98 98 99 99 async_wait_for(req, &rc); 100 return ( int)rc;100 return (errno_t)rc; 101 101 } 102 102
Note:
See TracChangeset
for help on using the changeset viewer.