Changes in uspace/lib/c/generic/iplink_srv.c [25a179e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/iplink_srv.c
r25a179e rb7fd2a0 46 46 { 47 47 size_t mtu; 48 int rc = srv->ops->get_mtu(srv, &mtu);48 errno_t rc = srv->ops->get_mtu(srv, &mtu); 49 49 async_answer_1(callid, rc, mtu); 50 50 } … … 54 54 { 55 55 addr48_t mac; 56 int rc = srv->ops->get_mac48(srv, &mac);56 errno_t rc = srv->ops->get_mac48(srv, &mac); 57 57 if (rc != EOK) { 58 58 async_answer_0(iid, rc); … … 84 84 ipc_call_t *icall) 85 85 { 86 int rc;86 errno_t rc; 87 87 size_t size; 88 88 addr48_t mac; … … 125 125 126 126 inet_addr_t addr; 127 int rc = async_data_write_finalize(callid, &addr, size);127 errno_t rc = async_data_write_finalize(callid, &addr, size); 128 128 if (rc != EOK) { 129 129 async_answer_0(callid, rc); … … 153 153 154 154 inet_addr_t addr; 155 int rc = async_data_write_finalize(callid, &addr, size);155 errno_t rc = async_data_write_finalize(callid, &addr, size); 156 156 if (rc != EOK) { 157 157 async_answer_0(callid, rc); … … 171 171 sdu.dest = IPC_GET_ARG2(*icall); 172 172 173 int rc = async_data_write_accept(&sdu.data, false, 0, 0, 0,173 errno_t rc = async_data_write_accept(&sdu.data, false, 0, 0, 0, 174 174 &sdu.size); 175 175 if (rc != EOK) { … … 202 202 } 203 203 204 int rc = async_data_write_finalize(callid, &sdu.dest, size);204 errno_t rc = async_data_write_finalize(callid, &sdu.dest, size); 205 205 if (rc != EOK) { 206 206 async_answer_0(callid, rc); … … 229 229 } 230 230 231 int iplink_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg)231 errno_t iplink_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg) 232 232 { 233 233 iplink_srv_t *srv = (iplink_srv_t *) arg; 234 int rc;234 errno_t rc; 235 235 236 236 fibril_mutex_lock(&srv->lock); … … 302 302 303 303 /* XXX Version should be part of @a sdu */ 304 int iplink_ev_recv(iplink_srv_t *srv, iplink_recv_sdu_t *sdu, ip_ver_t ver)304 errno_t iplink_ev_recv(iplink_srv_t *srv, iplink_recv_sdu_t *sdu, ip_ver_t ver) 305 305 { 306 306 if (srv->client_sess == NULL) … … 313 313 &answer); 314 314 315 int rc = async_data_write_start(exch, sdu->data, sdu->size);315 errno_t rc = async_data_write_start(exch, sdu->data, sdu->size); 316 316 async_exchange_end(exch); 317 317 … … 321 321 } 322 322 323 int retval;323 errno_t retval; 324 324 async_wait_for(req, &retval); 325 325 if (retval != EOK) … … 329 329 } 330 330 331 int iplink_ev_change_addr(iplink_srv_t *srv, addr48_t *addr)331 errno_t iplink_ev_change_addr(iplink_srv_t *srv, addr48_t *addr) 332 332 { 333 333 if (srv->client_sess == NULL) … … 339 339 aid_t req = async_send_0(exch, IPLINK_EV_CHANGE_ADDR, &answer); 340 340 341 int rc = async_data_write_start(exch, addr, sizeof(addr48_t));341 errno_t rc = async_data_write_start(exch, addr, sizeof(addr48_t)); 342 342 async_exchange_end(exch); 343 343 … … 347 347 } 348 348 349 int retval;349 errno_t retval; 350 350 async_wait_for(req, &retval); 351 351 if (retval != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.