Changeset 1c6c3e1d in mainline for uspace/srv/hid/output/output.c
- Timestamp:
- 2023-10-22T17:55:33Z (14 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/hid/output/output.c
r315d487 r1c6c3e1d 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda 2 3 * Copyright (c) 2011 Martin Decky 3 4 * All rights reserved. … … 468 469 int main(int argc, char *argv[]) 469 470 { 471 loc_srv_t *srv; 472 470 473 if (argc < 2) { 471 474 usage(argv[0]); … … 477 480 /* Register server */ 478 481 async_set_fallback_port_handler(client_connection, NULL); 479 errno_t rc = loc_server_register(NAME );482 errno_t rc = loc_server_register(NAME, &srv); 480 483 if (rc != EOK) { 481 484 printf("%s: Unable to register driver\n", NAME); … … 484 487 485 488 service_id_t service_id; 486 rc = loc_service_register( argv[1], &service_id);489 rc = loc_service_register(srv, argv[1], &service_id); 487 490 if (rc != EOK) { 491 loc_server_unregister(srv); 492 488 493 printf("%s: Unable to register service %s\n", NAME, argv[1]); 489 494 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.