Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetping.c

    rb7fd2a0 r8d2dd7f2  
    5858static uint16_t inetping_ident = 0;
    5959
    60 static errno_t inetping_send(inetping_client_t *client, inetping_sdu_t *sdu)
     60static int inetping_send(inetping_client_t *client, inetping_sdu_t *sdu)
    6161{
    6262        if (sdu->src.version != sdu->dest.version)
     
    7373}
    7474
    75 static errno_t inetping_get_srcaddr(inetping_client_t *client,
     75static int inetping_get_srcaddr(inetping_client_t *client,
    7676    inet_addr_t *remote, inet_addr_t *local)
    7777{
     
    9494}
    9595
    96 errno_t inetping_recv(uint16_t ident, inetping_sdu_t *sdu)
     96int inetping_recv(uint16_t ident, inetping_sdu_t *sdu)
    9797{
    9898        inetping_client_t *client = inetping_client_find(ident);
     
    107107        aid_t req = async_send_1(exch, INETPING_EV_RECV, sdu->seq_no, &answer);
    108108
    109         errno_t rc = async_data_write_start(exch, &sdu->src, sizeof(sdu->src));
     109        int rc = async_data_write_start(exch, &sdu->src, sizeof(sdu->src));
    110110        if (rc != EOK) {
    111111                async_exchange_end(exch);
     
    130130        }
    131131
    132         errno_t retval;
     132        sysarg_t retval;
    133133        async_wait_for(req, &retval);
    134134
    135         return retval;
     135        return (int) retval;
    136136}
    137137
     
    142142
    143143        inetping_sdu_t sdu;
    144         errno_t rc;
     144        int rc;
    145145
    146146        sdu.seq_no = IPC_GET_ARG1(*icall);
     
    222222        }
    223223
    224         errno_t rc = async_data_write_finalize(callid, &remote, size);
     224        int rc = async_data_write_finalize(callid, &remote, size);
    225225        if (rc != EOK) {
    226226                async_answer_0(callid, rc);
     
    254254}
    255255
    256 static errno_t inetping_client_init(inetping_client_t *client)
     256static int inetping_client_init(inetping_client_t *client)
    257257{
    258258        async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
     
    289289
    290290        inetping_client_t client;
    291         errno_t rc = inetping_client_init(&client);
     291        int rc = inetping_client_init(&client);
    292292        if (rc != EOK)
    293293                return;
Note: See TracChangeset for help on using the changeset viewer.