Changeset 1c6c3e1d in mainline for uspace/srv/volsrv/volsrv.c
- Timestamp:
- 2023-10-22T17:55:33Z (15 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/volsrv/volsrv.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 20 15Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 62 62 vol_volumes_t *volumes = NULL; 63 63 vol_parts_t *parts = NULL; 64 loc_srv_t *srv = NULL; 64 65 65 66 log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_init()"); … … 79 80 async_set_fallback_port_handler(vol_client_conn, parts); 80 81 81 rc = loc_server_register(NAME );82 rc = loc_server_register(NAME, &srv); 82 83 if (rc != EOK) { 83 84 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc)); … … 86 87 87 88 service_id_t sid; 88 rc = loc_service_register( SERVICE_NAME_VOLSRV, &sid);89 rc = loc_service_register(srv, SERVICE_NAME_VOLSRV, &sid); 89 90 if (rc != EOK) { 90 91 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service: %s.", str_error(rc)); … … 95 96 return EOK; 96 97 error: 98 if (srv != NULL) 99 loc_server_unregister(srv); 97 100 vol_volumes_destroy(volumes); 98 101 vol_parts_destroy(parts);
Note:
See TracChangeset
for help on using the changeset viewer.