Changeset 1c6c3e1d in mainline for uspace/srv/net/dnsrsrv/dnsrsrv.c
- Timestamp:
- 2023-10-22T17:55:33Z (14 months ago)
- Branches:
- ticket/834-toolchain-update
- Children:
- 350ec74
- Parents:
- 315d487 (diff), 133461c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/dnsrsrv.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 20 13 Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 57 57 static errno_t dnsr_init(void) 58 58 { 59 loc_srv_t *srv; 59 60 errno_t rc; 60 61 log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_init()"); … … 68 69 async_set_fallback_port_handler(dnsr_client_conn, NULL); 69 70 70 rc = loc_server_register(NAME );71 rc = loc_server_register(NAME, &srv); 71 72 if (rc != EOK) { 72 73 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc)); … … 76 77 77 78 service_id_t sid; 78 rc = loc_service_register(SERVICE_NAME_DNSR, &sid); 79 if (rc != EOK) { 79 rc = loc_service_register(srv, SERVICE_NAME_DNSR, &sid); 80 if (rc != EOK) { 81 loc_server_unregister(srv); 80 82 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service: %s.", str_error(rc)); 81 83 transport_fini();
Note:
See TracChangeset
for help on using the changeset viewer.