From 0ebecbd1f6b00e8d5693232c43605cfe31fabb65 Mon Sep 17 00:00:00 2001 From: "Tod E. Kurt" Date: Tue, 2 Jul 2019 23:10:41 -0700 Subject: [PATCH] fix small casting issue --- mac/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac/hid.c b/mac/hid.c index 67b59f9..3632010 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -573,7 +573,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender, hid_device *dev = (hid_device*) context; /* Make a new Input Report object */ - rpt = (input_report*) calloc(1, sizeof(struct input_report)); + rpt = (struct input_report*) calloc(1, sizeof(struct input_report)); rpt->data = (uint8_t*) calloc(1, report_length); memcpy(rpt->data, report, report_length); rpt->len = report_length;