Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/udp.c

    r58e8646 rcde999a  
    4646 *
    4747 * @param udp UDP service
    48  * @return EOK on success or negative error code
     48 * @return EOK on success or an error code
    4949 */
    5050static int udp_callback_create(udp_t *udp)
     
    6363                return rc;
    6464
    65         sysarg_t retval;
     65        int retval;
    6666        async_wait_for(req, &retval);
    6767
     
    158158 * @param rassoc Place to store pointer to new association
    159159 *
    160  * @return EOK on success or negative error code.
     160 * @return EOK on success or an error code.
    161161 */
    162162int udp_assoc_create(udp_t *udp, inet_ep2_t *epp, udp_cb_t *cb, void *arg,
     
    173173        exch = async_exchange_begin(udp->sess);
    174174        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,
    176176            sizeof(inet_ep2_t));
    177177        async_exchange_end(exch);
    178178
    179179        if (rc != EOK) {
    180                 sysarg_t rc_orig;
     180                int rc_orig;
    181181                async_wait_for(req, &rc_orig);
    182182                if (rc_orig != EOK)
     
    220220
    221221        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);
    223223        async_exchange_end(exch);
    224224
     
    237237
    238238        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);
    240240        async_exchange_end(exch);
    241241
     
    250250 * @param bytes Message size in bytes
    251251 *
    252  * @return EOK on success or negative error code
     252 * @return EOK on success or an error code
    253253 */
    254254int udp_assoc_send_msg(udp_assoc_t *assoc, inet_ep_t *dest, void *data,
     
    260260        aid_t req = async_send_1(exch, UDP_ASSOC_SEND_MSG, assoc->id, NULL);
    261261
    262         sysarg_t rc = async_data_write_start(exch, (void *)dest,
     262        int rc = async_data_write_start(exch, (void *)dest,
    263263            sizeof(inet_ep_t));
    264264        if (rc != EOK) {
     
    316316 * @param bsize Buffer size
    317317 *
    318  * @return EOK on success or negative error code.
     318 * @return EOK on success or an error code.
    319319 */
    320320int udp_rmsg_read(udp_rmsg_t *rmsg, size_t off, void *buf, size_t bsize)
     
    333333        }
    334334
    335         sysarg_t retval;
     335        int retval;
    336336        async_wait_for(req, &retval);
    337337        if (retval != EOK) {
     
    380380 * @param rmsg Place to store message information
    381381 *
    382  * @return EOK on success or negative error code
     382 * @return EOK on success or an error code
    383383 */
    384384static int udp_rmsg_info(udp_t *udp, udp_rmsg_t *rmsg)
     
    398398        }
    399399
    400         sysarg_t retval;
     400        int retval;
    401401        async_wait_for(req, &retval);
    402402        if (retval != EOK)
     
    413413 *
    414414 * @param udp UDP client
    415  * @return EOK on success or negative error code
     415 * @return EOK on success or an error code
    416416 */
    417417static int udp_rmsg_discard(udp_t *udp)
     
    420420
    421421        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);
    423423        async_exchange_end(exch);
    424424
Note: See TracChangeset for help on using the changeset viewer.