Changeset 63495 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Aug 15, 2016 5:19:46 PM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/darwin/testcase
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/darwin/testcase/tstOpenUSBDev.cpp
r62490 r63495 80 80 81 81 82 static int tstDoWork(io_object_t USBDevice, mach_port_t MasterPort,const char *argv0)82 static int tstDoWork(io_object_t USBDevice, const char *argv0) 83 83 { 84 84 /* … … 190 190 191 191 int ch; 192 int i = 1;193 192 RTGETOPTUNION ValueUnion; 194 193 RTGETOPTSTATE GetState; … … 218 217 * Open the master port. 219 218 */ 220 mach_port_t MasterPort = NULL;219 mach_port_t MasterPort = MACH_PORT_NULL; 221 220 krc = IOMasterPort(MACH_PORT_NULL, &MasterPort); 222 221 if (krc != KERN_SUCCESS) … … 236 235 } 237 236 238 io_iterator_t USBDevices = NULL;237 io_iterator_t USBDevices = IO_OBJECT_NULL; 239 238 IOReturn irc = IOServiceGetMatchingServices(MasterPort, RefMatchingDict, &USBDevices); 240 239 if (irc != kIOReturnSuccess) … … 267 266 cMatches++; 268 267 CFRelease(PropsRef); 269 tstDoWork(USBDevice, MasterPort,argv[0]);268 tstDoWork(USBDevice, argv[0]); 270 269 } 271 270 else
Note:
See TracChangeset
for help on using the changeset viewer.