Changeset 1c6c3e1d in mainline for uspace/srv/test/ipc-test/main.c


Ignore:
Timestamp:
2023-10-22T17:55:33Z (20 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/test/ipc-test/main.c

    r315d487 r1c6c3e1d  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    222222{
    223223        errno_t rc;
     224        loc_srv_t *srv;
    224225
    225226        printf("%s: IPC test service\n", NAME);
     
    232233        }
    233234
    234         rc = loc_server_register(NAME);
     235        rc = loc_server_register(NAME, &srv);
    235236        if (rc != EOK) {
    236237                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server. (%s)\n",
     
    239240        }
    240241
    241         rc = loc_service_register(SERVICE_NAME_IPC_TEST, &svc_id);
    242         if (rc != EOK) {
     242        rc = loc_service_register(srv, SERVICE_NAME_IPC_TEST, &svc_id);
     243        if (rc != EOK) {
     244                loc_server_unregister(srv);
    243245                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service. (%s)\n",
    244246                    str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.