Changes in uspace/lib/c/generic/dnsr.c [b7fd2a0:25a179e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/dnsr.c
rb7fd2a0 r25a179e 67 67 } 68 68 69 errno_t dnsr_name2host(const char *name, dnsr_hostinfo_t **rinfo, ip_ver_t ver)69 int dnsr_name2host(const char *name, dnsr_hostinfo_t **rinfo, ip_ver_t ver) 70 70 { 71 71 async_exch_t *exch = dnsr_exchange_begin(); … … 75 75 &answer); 76 76 77 errno_t rc = async_data_write_start(exch, name, str_size(name));77 int rc = async_data_write_start(exch, name, str_size(name)); 78 78 if (rc != EOK) { 79 79 async_exchange_end(exch); … … 90 90 sizeof(inet_addr_t), &answer_addr); 91 91 92 errno_t retval_addr;92 int retval_addr; 93 93 async_wait_for(req_addr, &retval_addr); 94 94 … … 107 107 dnsr_exchange_end(exch); 108 108 109 errno_t retval_cname;109 int retval_cname; 110 110 async_wait_for(req_cname, &retval_cname); 111 111 … … 116 116 } 117 117 118 errno_t retval;118 int retval; 119 119 async_wait_for(req, &retval); 120 120 … … 150 150 } 151 151 152 errno_t dnsr_get_srvaddr(inet_addr_t *srvaddr)152 int dnsr_get_srvaddr(inet_addr_t *srvaddr) 153 153 { 154 154 async_exch_t *exch = dnsr_exchange_begin(); … … 156 156 ipc_call_t answer; 157 157 aid_t req = async_send_0(exch, DNSR_GET_SRVADDR, &answer); 158 errno_t rc = async_data_read_start(exch, srvaddr, sizeof(inet_addr_t));158 int rc = async_data_read_start(exch, srvaddr, sizeof(inet_addr_t)); 159 159 160 160 loc_exchange_end(exch); … … 165 165 } 166 166 167 errno_t retval;167 int retval; 168 168 async_wait_for(req, &retval); 169 169 … … 171 171 } 172 172 173 errno_t dnsr_set_srvaddr(inet_addr_t *srvaddr)173 int dnsr_set_srvaddr(inet_addr_t *srvaddr) 174 174 { 175 175 async_exch_t *exch = dnsr_exchange_begin(); … … 177 177 ipc_call_t answer; 178 178 aid_t req = async_send_0(exch, DNSR_SET_SRVADDR, &answer); 179 errno_t rc = async_data_write_start(exch, srvaddr, sizeof(inet_addr_t));179 int rc = async_data_write_start(exch, srvaddr, sizeof(inet_addr_t)); 180 180 181 181 loc_exchange_end(exch); … … 186 186 } 187 187 188 errno_t retval;188 int retval; 189 189 async_wait_for(req, &retval); 190 190
Note:
See TracChangeset
for help on using the changeset viewer.