Skip to content

Commit 0ebecbd

Browse files
committed
fix small casting issue
1 parent d1d330c commit 0ebecbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mac/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender,
573573
hid_device *dev = (hid_device*) context;
574574

575575
/* Make a new Input Report object */
576-
rpt = (input_report*) calloc(1, sizeof(struct input_report));
576+
rpt = (struct input_report*) calloc(1, sizeof(struct input_report));
577577
rpt->data = (uint8_t*) calloc(1, report_length);
578578
memcpy(rpt->data, report, report_length);
579579
rpt->len = report_length;

0 commit comments

Comments
 (0)