From 6d5771ed44e572eb980446e38b69265cdb239d9a Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 3 Dec 2012 08:06:31 +0000 Subject: [PATCH] send a reference to the typeCallback --- ykcore/ykcore_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 22abdc0..616a4d3 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -76,7 +76,7 @@ void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len) size_t i; - CFMutableArrayRef matches = CFArrayCreateMutable( kCFAllocatorDefault, pids_len, kCFTypeArrayCallBacks ); + CFMutableArrayRef matches = CFArrayCreateMutable( kCFAllocatorDefault, pids_len, &kCFTypeArrayCallBacks ); CFNumberRef vendorID = CFNumberCreate( kCFAllocatorDefault, kCFNumberIntType, &vendor_id ); for(i = 0; i < pids_len; i++) { -- 2.39.5