Changeset 4c6fd56 in mainline for uspace/srv/hid/isdv4_tablet/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/hid/isdv4_tablet/main.c
r6a0b2cc r4c6fd56 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda 2 3 * Copyright (c) 2012 Martin Sucha 3 4 * All rights reserved. … … 184 185 serial_t *serial; 185 186 char *serial_port_name = NULL; 187 loc_srv_t *srv; 186 188 187 189 int arg = 1; … … 315 317 316 318 async_set_fallback_port_handler(mouse_connection, NULL); 317 rc = loc_server_register(NAME );319 rc = loc_server_register(NAME, &srv); 318 320 if (rc != EOK) { 319 321 printf("%s: Unable to register driver.\n", NAME); … … 329 331 } 330 332 331 rc = loc_service_register(service_name, &service_id); 332 if (rc != EOK) { 333 rc = loc_service_register(srv, service_name, &service_id); 334 if (rc != EOK) { 335 loc_server_unregister(srv); 333 336 printf(NAME ": Unable to register service %s.\n", service_name); 334 337 return rc; … … 340 343 printf(NAME ": Unable to get mouse category id.\n"); 341 344 } else { 342 rc = loc_service_add_to_cat(s ervice_id, mouse_category);345 rc = loc_service_add_to_cat(srv, service_id, mouse_category); 343 346 if (rc != EOK) { 344 347 printf(NAME ": Unable to add device to mouse category.\n");
Note:
See TracChangeset
for help on using the changeset viewer.