Changeset 298e010 in mainline for uspace/lib/drv/generic
- Timestamp:
- 2018-02-03T10:34:18Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 860bf94
- Parents:
- 7cba9f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbdiag.c
r7cba9f7 r298e010 58 58 } 59 59 60 int usbdiag_test_in(async_exch_t *exch, const usbdiag_test_params_t *params, usbdiag_test_results_t *results)60 errno_t usbdiag_test_in(async_exch_t *exch, const usbdiag_test_params_t *params, usbdiag_test_results_t *results) 61 61 { 62 62 if (!exch) … … 66 66 aid_t req = async_send_1(exch, DEV_IFACE_ID(USBDIAG_DEV_IFACE), IPC_M_USBDIAG_TEST_IN, &answer); 67 67 68 int rc = async_data_write_start(exch, params, sizeof(usbdiag_test_params_t));68 errno_t rc = async_data_write_start(exch, params, sizeof(usbdiag_test_params_t)); 69 69 if (rc != EOK) { 70 70 async_exchange_end(exch); … … 85 85 async_wait_for(req, &retval); 86 86 87 return ( int) retval;88 } 89 90 int usbdiag_test_out(async_exch_t *exch, const usbdiag_test_params_t *params, usbdiag_test_results_t *results)87 return (errno_t) retval; 88 } 89 90 errno_t usbdiag_test_out(async_exch_t *exch, const usbdiag_test_params_t *params, usbdiag_test_results_t *results) 91 91 { 92 92 if (!exch) … … 96 96 aid_t req = async_send_1(exch, DEV_IFACE_ID(USBDIAG_DEV_IFACE), IPC_M_USBDIAG_TEST_OUT, &answer); 97 97 98 int rc = async_data_write_start(exch, params, sizeof(usbdiag_test_params_t));98 errno_t rc = async_data_write_start(exch, params, sizeof(usbdiag_test_params_t)); 99 99 if (rc != EOK) { 100 100 async_exchange_end(exch); … … 115 115 async_wait_for(req, &retval); 116 116 117 return ( int) retval;117 return (errno_t) retval; 118 118 } 119 119 … … 158 158 159 159 usbdiag_test_results_t results; 160 const int ret = !diag_iface->test_in ? ENOTSUP : diag_iface->test_in(fun, ¶ms, &results);160 const errno_t ret = !diag_iface->test_in ? ENOTSUP : diag_iface->test_in(fun, ¶ms, &results); 161 161 162 162 if (ret != EOK) { … … 210 210 211 211 usbdiag_test_results_t results; 212 const int ret = !diag_iface->test_out ? ENOTSUP : diag_iface->test_out(fun, ¶ms, &results);212 const errno_t ret = !diag_iface->test_out ? ENOTSUP : diag_iface->test_out(fun, ¶ms, &results); 213 213 214 214 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.