Changes in uspace/lib/c/generic/inetping.c [25a179e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inetping.c
r25a179e rb7fd2a0 44 44 static inetping_ev_ops_t *inetping_ev_ops; 45 45 46 int inetping_init(inetping_ev_ops_t *ev_ops)46 errno_t inetping_init(inetping_ev_ops_t *ev_ops) 47 47 { 48 48 service_id_t inetping_svc; 49 int rc;49 errno_t rc; 50 50 51 51 assert(inetping_sess == NULL); … … 80 80 } 81 81 82 int inetping_send(inetping_sdu_t *sdu)82 errno_t inetping_send(inetping_sdu_t *sdu) 83 83 { 84 84 async_exch_t *exch = async_exchange_begin(inetping_sess); … … 87 87 aid_t req = async_send_1(exch, INETPING_SEND, sdu->seq_no, &answer); 88 88 89 int rc = async_data_write_start(exch, &sdu->src, sizeof(sdu->src));89 errno_t rc = async_data_write_start(exch, &sdu->src, sizeof(sdu->src)); 90 90 if (rc != EOK) { 91 91 async_exchange_end(exch); … … 110 110 } 111 111 112 int retval;112 errno_t retval; 113 113 async_wait_for(req, &retval); 114 114 … … 116 116 } 117 117 118 int inetping_get_srcaddr(const inet_addr_t *remote, inet_addr_t *local)118 errno_t inetping_get_srcaddr(const inet_addr_t *remote, inet_addr_t *local) 119 119 { 120 120 async_exch_t *exch = async_exchange_begin(inetping_sess); … … 123 123 aid_t req = async_send_0(exch, INETPING_GET_SRCADDR, &answer); 124 124 125 int rc = async_data_write_start(exch, remote, sizeof(*remote));125 errno_t rc = async_data_write_start(exch, remote, sizeof(*remote)); 126 126 if (rc != EOK) { 127 127 async_exchange_end(exch); … … 136 136 async_exchange_end(exch); 137 137 138 int retval_local;138 errno_t retval_local; 139 139 async_wait_for(req_local, &retval_local); 140 140 … … 144 144 } 145 145 146 int retval;146 errno_t retval; 147 147 async_wait_for(req, &retval); 148 148 … … 170 170 } 171 171 172 int rc = async_data_write_finalize(callid, &sdu.src, size);172 errno_t rc = async_data_write_finalize(callid, &sdu.src, size); 173 173 if (rc != EOK) { 174 174 async_answer_0(callid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.