VirtualBox

Changeset 62305 in vbox for trunk


Ignore:
Timestamp:
Jul 18, 2016 3:53:55 PM (9 years ago)
Author:
vboxsync
Message:

HostDrivers: On MacOS X use 0 to initialize/assign io_connect_t to
fix -Wnull-conversion

Location:
trunk/src/VBox/HostDrivers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r58340 r62305  
    102102    /*.fUnrestricted        = */    true
    103103#if   defined(RT_OS_DARWIN)
    104     ,/* .uConnection        = */    NULL
     104    ,/* .uConnection        = */    0
    105105#elif defined(RT_OS_LINUX)
    106106    ,/* .fSysMadviseWorks   = */    false
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp

    r57358 r62305  
    169169     * instantiated and create a session for this process.
    170170     */
    171     io_connect_t Connection = NULL;
     171    io_connect_t Connection = 0;
    172172    kr = IOServiceOpen(ServiceObject, mach_task_self(), SUP_DARWIN_IOSERVICE_COOKIE, &Connection);
    173173    IOObjectRelease(ServiceObject);
  • trunk/src/VBox/HostDrivers/VBoxUSB/darwin/USBLib-darwin.cpp

    r57358 r62305  
    4747static mach_port_t          g_MasterPort = 0;
    4848/** The current service connection. */
    49 static io_connect_t         g_Connection = NULL;
     49static io_connect_t         g_Connection = 0;
    5050
    5151
     
    132132        AssertMsgFailed(("%#x\n", kr));
    133133    }
    134     g_Connection = NULL;
     134    g_Connection = 0;
    135135
    136136    return VINF_SUCCESS;
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