VirtualBox

Changeset 18466 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2009 6:54:59 PM (16 years ago)
Author:
vboxsync
Message:

VBoxManageList.cpp: fixed gcc warning caused by the funny way enums are typed in vbox/xpcom.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r18108 r18466  
    313313            com::SafeIfaceArray <IHostNetworkInterface> hostNetworkInterfaces;
    314314#if defined(VBOX_WITH_NETFLT)
    315             CHECK_ERROR(host,
    316                     FindHostNetworkInterfacesOfType (
    317                             command == LISTBRIDGEDIFS ? HostNetworkInterfaceType_Bridged : HostNetworkInterfaceType_HostOnly,
    318                             ComSafeArrayAsOutParam (hostNetworkInterfaces)));
     315            if (command == LISTBRIDGEDIFS)
     316                CHECK_ERROR(host, FindHostNetworkInterfacesOfType(HostNetworkInterfaceType_Bridged,
     317                                                                  ComSafeArrayAsOutParam(hostNetworkInterfaces)));
     318            else
     319                CHECK_ERROR(host, FindHostNetworkInterfacesOfType(HostNetworkInterfaceType_HostOnly,
     320                                                                  ComSafeArrayAsOutParam(hostNetworkInterfaces)));
    319321#else
    320             CHECK_ERROR(host,
    321                         COMGETTER(NetworkInterfaces) (ComSafeArrayAsOutParam (hostNetworkInterfaces)));
     322            CHECK_ERROR(host, COMGETTER(NetworkInterfaces)(ComSafeArrayAsOutParam(hostNetworkInterfaces)));
    322323#endif
    323324            for (size_t i = 0; i < hostNetworkInterfaces.size(); ++i)
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