VirtualBox

Changeset 63495 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 15, 2016 5:19:46 PM (8 years ago)
Author:
vboxsync
Message:

warnings (clang)

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  
    8080
    8181
    82 static int tstDoWork(io_object_t USBDevice, mach_port_t MasterPort, const char *argv0)
     82static int tstDoWork(io_object_t USBDevice, const char *argv0)
    8383{
    8484    /*
     
    190190
    191191    int ch;
    192     int i = 1;
    193192    RTGETOPTUNION ValueUnion;
    194193    RTGETOPTSTATE GetState;
     
    218217     * Open the master port.
    219218     */
    220     mach_port_t MasterPort = NULL;
     219    mach_port_t MasterPort = MACH_PORT_NULL;
    221220    krc = IOMasterPort(MACH_PORT_NULL, &MasterPort);
    222221    if (krc != KERN_SUCCESS)
     
    236235    }
    237236
    238     io_iterator_t USBDevices = NULL;
     237    io_iterator_t USBDevices = IO_OBJECT_NULL;
    239238    IOReturn irc = IOServiceGetMatchingServices(MasterPort, RefMatchingDict, &USBDevices);
    240239    if (irc != kIOReturnSuccess)
     
    267266                cMatches++;
    268267                CFRelease(PropsRef);
    269                 tstDoWork(USBDevice, MasterPort, argv[0]);
     268                tstDoWork(USBDevice, argv[0]);
    270269            }
    271270            else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette