From: Klas Lindfors Date: Wed, 9 Jan 2013 12:30:32 +0000 (+0000) Subject: get rid of warning by casting X-Git-Tag: v1.11.2^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2711fdc40fdaccff4c55992ac4af2109979e6638;p=yubikey-personalization get rid of warning by casting --- diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 281498b..bd4538a 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -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 ));