Changes in uspace/srv/net/dnsrsrv/dnsrsrv.c [1d6dd2a:b688fd8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/dnsrsrv.c
r1d6dd2a rb688fd8 36 36 #include <async.h> 37 37 #include <errno.h> 38 #include <str_error.h>39 38 #include <io/log.h> 40 39 #include <ipc/dnsr.h> … … 43 42 #include <stdio.h> 44 43 #include <stdlib.h> 45 #include <str.h>46 44 #include <task.h> 47 45 … … 55 53 static void dnsr_client_conn(ipc_callid_t, ipc_call_t *, void *); 56 54 57 static errno_t dnsr_init(void)58 { 59 errno_t rc;55 static int dnsr_init(void) 56 { 57 int rc; 60 58 log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_init()"); 61 59 … … 70 68 rc = loc_server_register(NAME); 71 69 if (rc != EOK) { 72 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server : %s.", str_error(rc));70 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc); 73 71 transport_fini(); 74 72 return EEXIST; … … 78 76 rc = loc_service_register(SERVICE_NAME_DNSR, &sid); 79 77 if (rc != EOK) { 80 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service : %s.", str_error(rc));78 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 81 79 transport_fini(); 82 80 return EEXIST; … … 94 92 95 93 char *name; 96 errno_t rc = async_data_write_accept((void **) &name, true, 0,94 int rc = async_data_write_accept((void **) &name, true, 0, 97 95 DNS_NAME_MAX_SIZE, 0, NULL); 98 96 if (rc != EOK) { … … 146 144 async_answer_0(callid, rc); 147 145 148 async_answer_0(iid, rc);146 async_answer_0(iid, (sysarg_t) rc); 149 147 150 148 dns_hostinfo_destroy(hinfo); … … 172 170 // FIXME locking 173 171 174 errno_t rc = async_data_read_finalize(callid, &dns_server_addr, size);172 int rc = async_data_read_finalize(callid, &dns_server_addr, size); 175 173 if (rc != EOK) 176 174 async_answer_0(callid, rc); … … 200 198 // FIXME locking 201 199 202 errno_t rc = async_data_write_finalize(callid, &dns_server_addr, size);203 if (rc != EOK) { 204 async_answer_0(callid, rc); 205 async_answer_0(iid, rc); 206 } 207 208 async_answer_0(iid, rc);200 int rc = async_data_write_finalize(callid, &dns_server_addr, size); 201 if (rc != EOK) { 202 async_answer_0(callid, rc); 203 async_answer_0(iid, rc); 204 } 205 206 async_answer_0(iid, (sysarg_t) rc); 209 207 } 210 208 … … 247 245 int main(int argc, char *argv[]) 248 246 { 249 errno_t rc;247 int rc; 250 248 251 249 printf("%s: DNS Resolution Service\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.