Changeset 85272 in vbox for trunk/src/VBox/Main/src-server/darwin/iokit.cpp
- Timestamp:
- Jul 12, 2020 12:39:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/iokit.cpp
r82968 r85272 279 279 if (ValRef) 280 280 { 281 if (CFStringGetCString((CFStringRef)ValRef, psz, cch, kCFStringEncodingUTF8))281 if (CFStringGetCString((CFStringRef)ValRef, psz, (CFIndex)cch, kCFStringEncodingUTF8)) 282 282 return true; 283 283 } … … 328 328 if (cbActual >= 0 && cbBuf == (size_t)cbActual) 329 329 { 330 CFDataGetBytes((CFDataRef)ValRef, CFRangeMake(0, cbBuf), (uint8_t *)pvBuf);330 CFDataGetBytes((CFDataRef)ValRef, CFRangeMake(0, (CFIndex)cbBuf), (uint8_t *)pvBuf); 331 331 return true; 332 332 } … … 1035 1035 { 1036 1036 io_object_t IOUSBDeviceNew = IO_OBJECT_NULL; 1037 io_object_t krc = darwinGetUSBHostDeviceFromLegacyDevice(USBDevice, &IOUSBDeviceNew);1037 kern_return_t krc = darwinGetUSBHostDeviceFromLegacyDevice(USBDevice, &IOUSBDeviceNew); 1038 1038 if ( krc == KERN_SUCCESS 1039 1039 && IOUSBDeviceNew != IO_OBJECT_NULL) … … 1718 1718 *psz++ = ':'; 1719 1719 *psz++ = ' '; 1720 size_t cchLeft = sizeof(szTmp) - ( psz - &szTmp[0]) - (sizeof(" (Wireless)") - 1);1720 size_t cchLeft = sizeof(szTmp) - (size_t)(psz - &szTmp[0]) - (sizeof(" (Wireless)") - 1); 1721 1721 bool fFound = false; 1722 1722 CFIndex i; … … 1731 1731 CFStringRef BSDNameRef = SCNetworkInterfaceGetBSDName(IfRef); 1732 1732 if ( BSDNameRef 1733 && CFStringGetCString(BSDNameRef, psz, cchLeft, kCFStringEncodingUTF8)1733 && CFStringGetCString(BSDNameRef, psz, (CFIndex)cchLeft, kCFStringEncodingUTF8) 1734 1734 && !strcmp(psz, szBSDName)) 1735 1735 { 1736 1736 CFStringRef ServiceNameRef = SCNetworkServiceGetName(ServiceRef); 1737 1737 if ( ServiceNameRef 1738 && CFStringGetCString(ServiceNameRef, psz, cchLeft, kCFStringEncodingUTF8))1738 && CFStringGetCString(ServiceNameRef, psz, (CFIndex)cchLeft, kCFStringEncodingUTF8)) 1739 1739 { 1740 1740 fFound = true; … … 1751 1751 CFStringRef BSDNameRef = SCNetworkInterfaceGetBSDName(IfRef); 1752 1752 if ( BSDNameRef 1753 && CFStringGetCString(BSDNameRef, psz, cchLeft, kCFStringEncodingUTF8)1753 && CFStringGetCString(BSDNameRef, psz, (CFIndex)cchLeft, kCFStringEncodingUTF8) 1754 1754 && !strcmp(psz, szBSDName)) 1755 1755 { 1756 1756 CFStringRef DisplayNameRef = SCNetworkInterfaceGetLocalizedDisplayName(IfRef); 1757 1757 if ( DisplayNameRef 1758 && CFStringGetCString(DisplayNameRef, psz, cchLeft, kCFStringEncodingUTF8))1758 && CFStringGetCString(DisplayNameRef, psz, (CFIndex)cchLeft, kCFStringEncodingUTF8)) 1759 1759 { 1760 1760 fFound = true;
Note:
See TracChangeset
for help on using the changeset viewer.