Changeset 4c6fd56 in mainline for uspace/srv/hid/remcons/remcons.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/hid/remcons/remcons.c
r6a0b2cc r4c6fd56 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda 2 3 * Copyright (c) 2012 Vojtech Horky 3 4 * All rights reserved. … … 110 111 }; 111 112 113 static loc_srv_t *remcons_srv; 114 112 115 static telnet_user_t *srv_to_user(con_srv_t *srv) 113 116 { … … 301 304 telnet_user_add(user); 302 305 303 errno_t rc = loc_service_register(user->service_name, &user->service_id); 306 errno_t rc = loc_service_register(remcons_srv, user->service_name, 307 &user->service_id); 304 308 if (rc != EOK) { 305 309 telnet_user_error(user, "Unable to register %s with loc: %s.", … … 332 336 fibril_mutex_unlock(&user->guard); 333 337 334 rc = loc_service_unregister( user->service_id);338 rc = loc_service_unregister(remcons_srv, user->service_id); 335 339 if (rc != EOK) { 336 340 telnet_user_error(user, … … 351 355 352 356 async_set_fallback_port_handler(client_connection, NULL); 353 rc = loc_server_register(NAME );357 rc = loc_server_register(NAME, &remcons_srv); 354 358 if (rc != EOK) { 355 359 fprintf(stderr, "%s: Unable to register server\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.