Changeset b7fd2a0 in mainline for uspace/app/mkbd/main.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
r36f0738 rb7fd2a0 60 60 static async_sess_t *dev_sess = NULL; 61 61 62 static int initialize_report_parser(async_sess_t *dev_sess,62 static errno_t initialize_report_parser(async_sess_t *dev_sess, 63 63 usb_hid_report_t **report) 64 64 { … … 67 67 return ENOMEM; 68 68 69 int rc = usb_hid_report_init(*report);69 errno_t rc = usb_hid_report_init(*report); 70 70 if (rc != EOK) { 71 71 usb_hid_report_deinit(*report); … … 131 131 132 132 uint8_t report_id; 133 int rc = usb_hid_parse_report(report, buffer, size, &report_id);133 errno_t rc = usb_hid_parse_report(report, buffer, size, &report_id); 134 134 if (rc != EOK) 135 135 return; … … 165 165 } 166 166 167 static int wait_for_quit_fibril(void *arg)167 static errno_t wait_for_quit_fibril(void *arg) 168 168 { 169 169 console_ctrl_t *con = console_init(stdin, stdout); … … 218 218 devman_handle_t dev_handle = 0; 219 219 220 int rc = usb_resolve_device_handle(devpath, &dev_handle);220 errno_t rc = usb_resolve_device_handle(devpath, &dev_handle); 221 221 if (rc != EOK) { 222 222 printf("Device not found or not of USB kind: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.