Changeset 1c6c3e1d in mainline for uspace/srv/volsrv/volsrv.c


Ignore:
Timestamp:
2023-10-22T17:55:33Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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.
Message:

Merge branch 'master' into ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/volsrv/volsrv.c

    r315d487 r1c6c3e1d  
    11/*
    2  * Copyright (c) 2015 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    6262        vol_volumes_t *volumes = NULL;
    6363        vol_parts_t *parts = NULL;
     64        loc_srv_t *srv = NULL;
    6465
    6566        log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_init()");
     
    7980        async_set_fallback_port_handler(vol_client_conn, parts);
    8081
    81         rc = loc_server_register(NAME);
     82        rc = loc_server_register(NAME, &srv);
    8283        if (rc != EOK) {
    8384                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc));
     
    8687
    8788        service_id_t sid;
    88         rc = loc_service_register(SERVICE_NAME_VOLSRV, &sid);
     89        rc = loc_service_register(srv, SERVICE_NAME_VOLSRV, &sid);
    8990        if (rc != EOK) {
    9091                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service: %s.", str_error(rc));
     
    9596        return EOK;
    9697error:
     98        if (srv != NULL)
     99                loc_server_unregister(srv);
    97100        vol_volumes_destroy(volumes);
    98101        vol_parts_destroy(parts);
Note: See TracChangeset for help on using the changeset viewer.