VirtualBox

Changeset 48016 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 23, 2013 9:22:14 AM (11 years ago)
Author:
vboxsync
Message:

RT_STR_TUPLE

Location:
trunk/src/VBox/Main/src-server
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/NetIf-darwin.cpp

    r47117 r48016  
    402402
    403403            HostNetworkInterfaceType_T enmType;
    404             if (strncmp("vboxnet", pNew->szName, 7))
     404            if (strncmp(pNew->szName, RT_STR_TUPLE("vboxnet")))
    405405                enmType = HostNetworkInterfaceType_Bridged;
    406406            else
  • trunk/src/VBox/Main/src-server/freebsd/NetIf-freebsd.cpp

    r47117 r48016  
    282282
    283283            HostNetworkInterfaceType_T enmType;
    284             if (strncmp("vboxnet", pNew->szName, 7))
     284            if (strncmp(pNew->szName, RT_STR_TUPLE("vboxnet")))
    285285                enmType = HostNetworkInterfaceType_Bridged;
    286286            else
  • trunk/src/VBox/Main/src-server/linux/NetIf-linux.cpp

    r47117 r48016  
    237237
    238238                    HostNetworkInterfaceType_T enmType;
    239                     if (strncmp("vboxnet", pszName, 7))
     239                    if (strncmp(pszName, RT_STR_TUPLE("vboxnet")))
    240240                        enmType = HostNetworkInterfaceType_Bridged;
    241241                    else
  • trunk/src/VBox/Main/src-server/solaris/NetIf-solaris.cpp

    r47117 r48016  
    277277
    278278    HostNetworkInterfaceType_T enmType;
    279     if (strncmp("vboxnet", szNICInstance, 7))
     279    if (strncmp(szNICInstance, RT_STR_TUPLE("vboxnet")))
    280280        enmType = HostNetworkInterfaceType_Bridged;
    281281    else
     
    293293     * Skip IPSEC interfaces. It's at IP level.
    294294     */
    295     if (!strncmp(pszIface, "ip.tun", 6))
     295    if (!strncmp(pszIface, RT_STR_TUPLE("ip.tun")))
    296296        return _B_FALSE;
    297297
     
    300300     * These names originate from VBoxNetFltBow-solaris.c, hardcoded here for now.
    301301     */
    302     if (    strncmp(pszIface, "vboxvnic_template", 17)
    303         && !strncmp(pszIface, "vboxvnic", 8))
     302    if (    strncmp(pszIface, RT_STR_TUPLE("vboxvnic_template"))
     303        && !strncmp(pszIface, RT_STR_TUPLE("vboxvnic")))
    304304        return _B_FALSE;
    305305
     
    437437                         * Skip loopback interfaces.
    438438                         */
    439                         if (!strncmp(Ifaces[i].lifr_name, "lo", 2))
     439                        if (!strncmp(Ifaces[i].lifr_name, RT_STR_TUPLE("lo")))
    440440                            continue;
    441441
  • trunk/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp

    r45367 r48016  
    174174    int cCompatNames = di_compatible_names(Node, &pszCompatNames);
    175175    for (int i = 0; i < cCompatNames; i++, pszCompatNames += strlen(pszCompatNames) + 1)
    176         if (!strncmp(pszCompatNames, "usb", 3))
     176        if (!strncmp(pszCompatNames, RT_STR_TUPLE("usb")))
    177177        {
    178178            fUSBDevice = true;
     
    323323        return USBDEVICESTATE_UNUSED;
    324324
    325     if (!strncmp(pszDriverName, VBOXUSB_DRIVER_NAME, sizeof(VBOXUSB_DRIVER_NAME) - 1))
     325    if (!strncmp(pszDriverName, RT_STR_TUPLE(VBOXUSB_DRIVER_NAME)))
    326326        return USBDEVICESTATE_HELD_BY_PROXY;
    327327
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