Changes in uspace/srv/hid/input/input.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/input.c
rb7fd2a0 rd5c1051 473 473 kdev->ctl_ops = &kbdev_ctl; 474 474 475 errno_t rc = loc_service_get_name(service_id, &kdev->svc_name);475 int rc = loc_service_get_name(service_id, &kdev->svc_name); 476 476 if (rc != EOK) { 477 477 kdev->svc_name = NULL; … … 510 510 mdev->proto_ops = &mousedev_proto; 511 511 512 errno_t rc = loc_service_get_name(service_id, &mdev->svc_name);512 int rc = loc_service_get_name(service_id, &mdev->svc_name); 513 513 if (rc != EOK) { 514 514 mdev->svc_name = NULL; … … 530 530 } 531 531 532 static errno_t serial_consumer(void *arg)532 static int serial_consumer(void *arg) 533 533 { 534 534 serial_dev_t *sdev = (serial_dev_t *) arg; … … 554 554 { 555 555 bool match = false; 556 errno_t rc;556 int rc; 557 557 558 558 serial_dev_t *sdev = serial_dev_new(); … … 633 633 } 634 634 635 static errno_t dev_check_new_kbdevs(void)635 static int dev_check_new_kbdevs(void) 636 636 { 637 637 category_id_t keyboard_cat; … … 639 639 size_t count, i; 640 640 bool already_known; 641 errno_t rc;641 int rc; 642 642 643 643 rc = loc_category_get_id("keyboard", &keyboard_cat, IPC_FLAG_BLOCKING); … … 684 684 } 685 685 686 static errno_t dev_check_new_mousedevs(void)686 static int dev_check_new_mousedevs(void) 687 687 { 688 688 category_id_t mouse_cat; … … 690 690 size_t count, i; 691 691 bool already_known; 692 errno_t rc;692 int rc; 693 693 694 694 rc = loc_category_get_id("mouse", &mouse_cat, IPC_FLAG_BLOCKING); … … 735 735 } 736 736 737 static errno_t dev_check_new_serialdevs(void)737 static int dev_check_new_serialdevs(void) 738 738 { 739 739 category_id_t serial_cat; … … 741 741 size_t count, i; 742 742 bool already_known; 743 errno_t rc;743 int rc; 744 744 745 745 rc = loc_category_get_id("serial", &serial_cat, IPC_FLAG_BLOCKING); … … 786 786 } 787 787 788 static errno_t dev_check_new(void)789 { 790 errno_t rc;788 static int dev_check_new(void) 789 { 790 int rc; 791 791 792 792 fibril_mutex_lock(&discovery_lock); … … 823 823 824 824 /** Start listening for new devices. */ 825 static errno_t input_start_dev_discovery(void)826 { 827 errno_t rc = loc_register_cat_change_cb(cat_change_cb);825 static int input_start_dev_discovery(void) 826 { 827 int rc = loc_register_cat_change_cb(cat_change_cb); 828 828 if (rc != EOK) { 829 829 printf("%s: Failed registering callback for device discovery: " … … 842 842 int main(int argc, char **argv) 843 843 { 844 errno_t rc;844 int rc; 845 845 846 846 if (argc < 2) {
Note:
See TracChangeset
for help on using the changeset viewer.