Changes in uspace/srv/net/inetsrv/inetping.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetping.c
rb7fd2a0 r8d2dd7f2 58 58 static uint16_t inetping_ident = 0; 59 59 60 static errno_t inetping_send(inetping_client_t *client, inetping_sdu_t *sdu)60 static int inetping_send(inetping_client_t *client, inetping_sdu_t *sdu) 61 61 { 62 62 if (sdu->src.version != sdu->dest.version) … … 73 73 } 74 74 75 static errno_t inetping_get_srcaddr(inetping_client_t *client,75 static int inetping_get_srcaddr(inetping_client_t *client, 76 76 inet_addr_t *remote, inet_addr_t *local) 77 77 { … … 94 94 } 95 95 96 errno_t inetping_recv(uint16_t ident, inetping_sdu_t *sdu)96 int inetping_recv(uint16_t ident, inetping_sdu_t *sdu) 97 97 { 98 98 inetping_client_t *client = inetping_client_find(ident); … … 107 107 aid_t req = async_send_1(exch, INETPING_EV_RECV, sdu->seq_no, &answer); 108 108 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)); 110 110 if (rc != EOK) { 111 111 async_exchange_end(exch); … … 130 130 } 131 131 132 errno_t retval;132 sysarg_t retval; 133 133 async_wait_for(req, &retval); 134 134 135 return retval;135 return (int) retval; 136 136 } 137 137 … … 142 142 143 143 inetping_sdu_t sdu; 144 errno_t rc;144 int rc; 145 145 146 146 sdu.seq_no = IPC_GET_ARG1(*icall); … … 222 222 } 223 223 224 errno_t rc = async_data_write_finalize(callid, &remote, size);224 int rc = async_data_write_finalize(callid, &remote, size); 225 225 if (rc != EOK) { 226 226 async_answer_0(callid, rc); … … 254 254 } 255 255 256 static errno_t inetping_client_init(inetping_client_t *client)256 static int inetping_client_init(inetping_client_t *client) 257 257 { 258 258 async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE); … … 289 289 290 290 inetping_client_t client; 291 errno_t rc = inetping_client_init(&client);291 int rc = inetping_client_init(&client); 292 292 if (rc != EOK) 293 293 return;
Note:
See TracChangeset
for help on using the changeset viewer.