Changeset 132ab5d1 in mainline for uspace/lib/c/generic/iplink_srv.c
- Timestamp:
- 2018-01-30T03:20:45Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/iplink_srv.c
r8bfb163 r132ab5d1 78 78 async_answer_0(callid, rc); 79 79 80 async_answer_0(iid, (sysarg_t)rc);80 async_answer_0(iid, rc); 81 81 } 82 82 … … 89 89 ipc_callid_t callid; 90 90 91 rc = async_data_write_receive(&callid, &size); 92 if (rc != EOK) { 93 async_answer_0(callid, (sysarg_t) rc); 94 async_answer_0(iid, (sysarg_t) rc); 91 if (!async_data_write_receive(&callid, &size)) { 92 async_answer_0(callid, EREFUSED); 93 async_answer_0(iid, EREFUSED); 95 94 } 96 95 … … 105 104 async_answer_0(callid, rc); 106 105 107 async_answer_0(iid, (sysarg_t)rc);106 async_answer_0(iid, rc); 108 107 } 109 108 … … 128 127 int rc = async_data_write_finalize(callid, &addr, size); 129 128 if (rc != EOK) { 130 async_answer_0(callid, (sysarg_t)rc);131 async_answer_0(iid, (sysarg_t)rc);129 async_answer_0(callid, rc); 130 async_answer_0(iid, rc); 132 131 } 133 132 134 133 rc = srv->ops->addr_add(srv, &addr); 135 async_answer_0(iid, (sysarg_t)rc);134 async_answer_0(iid, rc); 136 135 } 137 136 … … 156 155 int rc = async_data_write_finalize(callid, &addr, size); 157 156 if (rc != EOK) { 158 async_answer_0(callid, (sysarg_t)rc);159 async_answer_0(iid, (sysarg_t)rc);157 async_answer_0(callid, rc); 158 async_answer_0(iid, rc); 160 159 } 161 160 162 161 rc = srv->ops->addr_remove(srv, &addr); 163 async_answer_0(iid, (sysarg_t)rc);162 async_answer_0(iid, rc); 164 163 } 165 164 … … 205 204 int rc = async_data_write_finalize(callid, &sdu.dest, size); 206 205 if (rc != EOK) { 207 async_answer_0(callid, (sysarg_t)rc);208 async_answer_0(iid, (sysarg_t)rc);206 async_answer_0(callid, rc); 207 async_answer_0(iid, rc); 209 208 } 210 209 … … 322 321 } 323 322 324 sysarg_t retval;323 int retval; 325 324 async_wait_for(req, &retval); 326 325 if (retval != EOK) … … 348 347 } 349 348 350 sysarg_t retval;349 int retval; 351 350 async_wait_for(req, &retval); 352 351 if (retval != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.