From: Klas Lindfors Date: Mon, 3 Dec 2012 08:06:31 +0000 (+0000) Subject: send a reference to the typeCallback X-Git-Tag: v1.10.0~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5771ed44e572eb980446e38b69265cdb239d9a;p=yubikey-personalization send a reference to the typeCallback --- 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++) {