Changeset 48016 in vbox for trunk/src/VBox
- Timestamp:
- Aug 23, 2013 9:22:14 AM (11 years ago)
- 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 402 402 403 403 HostNetworkInterfaceType_T enmType; 404 if (strncmp( "vboxnet", pNew->szName, 7))404 if (strncmp(pNew->szName, RT_STR_TUPLE("vboxnet"))) 405 405 enmType = HostNetworkInterfaceType_Bridged; 406 406 else -
trunk/src/VBox/Main/src-server/freebsd/NetIf-freebsd.cpp
r47117 r48016 282 282 283 283 HostNetworkInterfaceType_T enmType; 284 if (strncmp( "vboxnet", pNew->szName, 7))284 if (strncmp(pNew->szName, RT_STR_TUPLE("vboxnet"))) 285 285 enmType = HostNetworkInterfaceType_Bridged; 286 286 else -
trunk/src/VBox/Main/src-server/linux/NetIf-linux.cpp
r47117 r48016 237 237 238 238 HostNetworkInterfaceType_T enmType; 239 if (strncmp( "vboxnet", pszName, 7))239 if (strncmp(pszName, RT_STR_TUPLE("vboxnet"))) 240 240 enmType = HostNetworkInterfaceType_Bridged; 241 241 else -
trunk/src/VBox/Main/src-server/solaris/NetIf-solaris.cpp
r47117 r48016 277 277 278 278 HostNetworkInterfaceType_T enmType; 279 if (strncmp( "vboxnet", szNICInstance, 7))279 if (strncmp(szNICInstance, RT_STR_TUPLE("vboxnet"))) 280 280 enmType = HostNetworkInterfaceType_Bridged; 281 281 else … … 293 293 * Skip IPSEC interfaces. It's at IP level. 294 294 */ 295 if (!strncmp(pszIface, "ip.tun", 6))295 if (!strncmp(pszIface, RT_STR_TUPLE("ip.tun"))) 296 296 return _B_FALSE; 297 297 … … 300 300 * These names originate from VBoxNetFltBow-solaris.c, hardcoded here for now. 301 301 */ 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"))) 304 304 return _B_FALSE; 305 305 … … 437 437 * Skip loopback interfaces. 438 438 */ 439 if (!strncmp(Ifaces[i].lifr_name, "lo", 2))439 if (!strncmp(Ifaces[i].lifr_name, RT_STR_TUPLE("lo"))) 440 440 continue; 441 441 -
trunk/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
r45367 r48016 174 174 int cCompatNames = di_compatible_names(Node, &pszCompatNames); 175 175 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"))) 177 177 { 178 178 fUSBDevice = true; … … 323 323 return USBDEVICESTATE_UNUSED; 324 324 325 if (!strncmp(pszDriverName, VBOXUSB_DRIVER_NAME, sizeof(VBOXUSB_DRIVER_NAME) - 1))325 if (!strncmp(pszDriverName, RT_STR_TUPLE(VBOXUSB_DRIVER_NAME))) 326 326 return USBDEVICESTATE_HELD_BY_PROXY; 327 327
Note:
See TracChangeset
for help on using the changeset viewer.