Changeset 1c6c3e1d in mainline for uspace/srv/clipboard/clipboard.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/clipboard/clipboard.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda 2 3 * Copyright (c) 2009 Martin Decky 3 4 * All rights reserved. … … 185 186 { 186 187 errno_t rc; 188 loc_srv_t *srv; 187 189 188 190 printf("%s: HelenOS clipboard service\n", NAME); 189 191 async_set_fallback_port_handler(clip_connection, NULL); 190 192 191 rc = loc_server_register(NAME );193 rc = loc_server_register(NAME, &srv); 192 194 if (rc != EOK) { 193 195 printf("%s: Failed registering server: %s\n", NAME, str_error(rc)); … … 195 197 } 196 198 197 rc = loc_service_register( SERVICE_NAME_CLIPBOARD, &svc_id);199 rc = loc_service_register(srv, SERVICE_NAME_CLIPBOARD, &svc_id); 198 200 if (rc != EOK) { 201 loc_server_unregister(srv); 202 199 203 printf("%s: Failed registering service : %s\n", NAME, str_error(rc)); 200 204 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.