]> err.no Git - yubikey-personalization/commitdiff
get rid of warning by casting
authorKlas Lindfors <klas@yubico.com>
Wed, 9 Jan 2013 12:30:32 +0000 (12:30 +0000)
committerKlas Lindfors <klas@yubico.com>
Wed, 9 Jan 2013 12:30:32 +0000 (12:30 +0000)
ykcore/ykcore_osx.c

index 281498b482113321a2964ddd2f9124c1bfed249e..bd4538a045bd61edf2c109309176a99ca4264c34 100644 (file)
@@ -101,7 +101,7 @@ void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len)
                CFIndex i;
 
                for(i = 0; i < cnt; i++) {
-                       IOHIDDeviceRef dev = CFArrayGetValueAtIndex( array, i );
+                       IOHIDDeviceRef dev = (IOHIDDeviceRef)CFArrayGetValueAtIndex( array, i );
                        long devVendorId = _ykosx_getIntProperty( dev, CFSTR( kIOHIDVendorIDKey ));
                        if(devVendorId == vendor_id) {
                                long devProductId = _ykosx_getIntProperty( dev, CFSTR( kIOHIDProductIDKey ));