Changes in uspace/lib/c/generic/inet/udp.c [58e8646:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/udp.c
r58e8646 rcde999a 46 46 * 47 47 * @param udp UDP service 48 * @return EOK on success or negativeerror code48 * @return EOK on success or an error code 49 49 */ 50 50 static int udp_callback_create(udp_t *udp) … … 63 63 return rc; 64 64 65 sysarg_t retval;65 int retval; 66 66 async_wait_for(req, &retval); 67 67 … … 158 158 * @param rassoc Place to store pointer to new association 159 159 * 160 * @return EOK on success or negativeerror code.160 * @return EOK on success or an error code. 161 161 */ 162 162 int udp_assoc_create(udp_t *udp, inet_ep2_t *epp, udp_cb_t *cb, void *arg, … … 173 173 exch = async_exchange_begin(udp->sess); 174 174 aid_t req = async_send_0(exch, UDP_ASSOC_CREATE, &answer); 175 sysarg_t rc = async_data_write_start(exch, (void *)epp,175 int rc = async_data_write_start(exch, (void *)epp, 176 176 sizeof(inet_ep2_t)); 177 177 async_exchange_end(exch); 178 178 179 179 if (rc != EOK) { 180 sysarg_t rc_orig;180 int rc_orig; 181 181 async_wait_for(req, &rc_orig); 182 182 if (rc_orig != EOK) … … 220 220 221 221 exch = async_exchange_begin(assoc->udp->sess); 222 sysarg_t rc = async_req_1_0(exch, UDP_ASSOC_DESTROY, assoc->id);222 int rc = async_req_1_0(exch, UDP_ASSOC_DESTROY, assoc->id); 223 223 async_exchange_end(exch); 224 224 … … 237 237 238 238 exch = async_exchange_begin(assoc->udp->sess); 239 sysarg_t rc = async_req_1_0(exch, UDP_ASSOC_SET_NOLOCAL, assoc->id);239 int rc = async_req_1_0(exch, UDP_ASSOC_SET_NOLOCAL, assoc->id); 240 240 async_exchange_end(exch); 241 241 … … 250 250 * @param bytes Message size in bytes 251 251 * 252 * @return EOK on success or negativeerror code252 * @return EOK on success or an error code 253 253 */ 254 254 int udp_assoc_send_msg(udp_assoc_t *assoc, inet_ep_t *dest, void *data, … … 260 260 aid_t req = async_send_1(exch, UDP_ASSOC_SEND_MSG, assoc->id, NULL); 261 261 262 sysarg_t rc = async_data_write_start(exch, (void *)dest,262 int rc = async_data_write_start(exch, (void *)dest, 263 263 sizeof(inet_ep_t)); 264 264 if (rc != EOK) { … … 316 316 * @param bsize Buffer size 317 317 * 318 * @return EOK on success or negativeerror code.318 * @return EOK on success or an error code. 319 319 */ 320 320 int udp_rmsg_read(udp_rmsg_t *rmsg, size_t off, void *buf, size_t bsize) … … 333 333 } 334 334 335 sysarg_t retval;335 int retval; 336 336 async_wait_for(req, &retval); 337 337 if (retval != EOK) { … … 380 380 * @param rmsg Place to store message information 381 381 * 382 * @return EOK on success or negativeerror code382 * @return EOK on success or an error code 383 383 */ 384 384 static int udp_rmsg_info(udp_t *udp, udp_rmsg_t *rmsg) … … 398 398 } 399 399 400 sysarg_t retval;400 int retval; 401 401 async_wait_for(req, &retval); 402 402 if (retval != EOK) … … 413 413 * 414 414 * @param udp UDP client 415 * @return EOK on success or negativeerror code415 * @return EOK on success or an error code 416 416 */ 417 417 static int udp_rmsg_discard(udp_t *udp) … … 420 420 421 421 exch = async_exchange_begin(udp->sess); 422 sysarg_t rc = async_req_0_0(exch, UDP_RMSG_DISCARD);422 int rc = async_req_0_0(exch, UDP_RMSG_DISCARD); 423 423 async_exchange_end(exch); 424 424
Note:
See TracChangeset
for help on using the changeset viewer.