Changeset 48171fc4 in mainline for uspace/srv/net/dnsrsrv/dnsrsrv.c
- Timestamp:
- 2013-05-03T08:10:02Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0d97f83
- Parents:
- fff7ef4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/dnsrsrv.c
rfff7ef4 r48171fc4 47 47 #include "dns_std.h" 48 48 #include "query.h" 49 #include "transport.h" 49 50 50 51 #define NAME "dnsres" … … 54 55 static int dnsr_init(void) 55 56 { 57 int rc; 56 58 log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_init()"); 57 59 60 rc = transport_init(); 61 if (rc != EOK) { 62 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing tarnsport."); 63 return EIO; 64 } 65 58 66 async_set_client_connection(dnsr_client_conn); 59 67 60 intrc = loc_server_register(NAME);68 rc = loc_server_register(NAME); 61 69 if (rc != EOK) { 62 70 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc); 71 transport_fini(); 63 72 return EEXIST; 64 73 } … … 68 77 if (rc != EOK) { 69 78 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc); 79 transport_fini(); 70 80 return EEXIST; 71 81 }
Note:
See TracChangeset
for help on using the changeset viewer.