Changeset 1c6c3e1d in mainline for uspace/srv/clipboard/clipboard.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/clipboard/clipboard.c

    r315d487 r1c6c3e1d  
    11/*
     2 * Copyright (c) 2023 Jiri Svoboda
    23 * Copyright (c) 2009 Martin Decky
    34 * All rights reserved.
     
    185186{
    186187        errno_t rc;
     188        loc_srv_t *srv;
    187189
    188190        printf("%s: HelenOS clipboard service\n", NAME);
    189191        async_set_fallback_port_handler(clip_connection, NULL);
    190192
    191         rc = loc_server_register(NAME);
     193        rc = loc_server_register(NAME, &srv);
    192194        if (rc != EOK) {
    193195                printf("%s: Failed registering server: %s\n", NAME, str_error(rc));
     
    195197        }
    196198
    197         rc = loc_service_register(SERVICE_NAME_CLIPBOARD, &svc_id);
     199        rc = loc_service_register(srv, SERVICE_NAME_CLIPBOARD, &svc_id);
    198200        if (rc != EOK) {
     201                loc_server_unregister(srv);
     202
    199203                printf("%s: Failed registering service : %s\n", NAME, str_error(rc));
    200204                return rc;
Note: See TracChangeset for help on using the changeset viewer.