Changeset 4c6fd56 in mainline for uspace/srv/test/ipc-test/main.c
- Timestamp:
- 2023-09-16T19:58:18Z (16 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d7f5e3
- Parents:
- 6a0b2cc
- git-author:
- Jiri Svoboda <jiri@…> (2023-09-16 19:48:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-09-16 19:58:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/test/ipc-test/main.c
r6a0b2cc r4c6fd56 1 1 /* 2 * Copyright (c) 20 18Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 222 222 { 223 223 errno_t rc; 224 loc_srv_t *srv; 224 225 225 226 printf("%s: IPC test service\n", NAME); … … 232 233 } 233 234 234 rc = loc_server_register(NAME );235 rc = loc_server_register(NAME, &srv); 235 236 if (rc != EOK) { 236 237 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server. (%s)\n", … … 239 240 } 240 241 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); 243 245 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service. (%s)\n", 244 246 str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.