summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp')
-rw-r--r--src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp b/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
index 8261d990..0d6d85e8 100644
--- a/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
+++ b/src/VBox/Main/src-server/solaris/USBProxyServiceSolaris.cpp
@@ -173,7 +173,7 @@ static int solarisWalkDeviceNode(di_node_t Node, void *pvArg)
char *pszCompatNames = NULL;
int cCompatNames = di_compatible_names(Node, &pszCompatNames);
for (int i = 0; i < cCompatNames; i++, pszCompatNames += strlen(pszCompatNames) + 1)
- if (!strncmp(pszCompatNames, "usb", 3))
+ if (!strncmp(pszCompatNames, RT_STR_TUPLE("usb")))
{
fUSBDevice = true;
break;
@@ -304,7 +304,7 @@ static int solarisWalkDeviceNode(di_node_t Node, void *pvArg)
pList->pTail = pList->pHead = pCur;
rc = DI_WALK_CONTINUE;
- } while(0);
+ } while (0);
di_devfs_path_free(pszDevicePath);
if (!fValidDevice)
@@ -322,7 +322,7 @@ static USBDEVICESTATE solarisDetermineUSBDeviceState(PUSBDEVICE pDevice, di_node
if (!pszDriverName)
return USBDEVICESTATE_UNUSED;
- if (!strncmp(pszDriverName, VBOXUSB_DRIVER_NAME, sizeof(VBOXUSB_DRIVER_NAME) - 1))
+ if (!strncmp(pszDriverName, RT_STR_TUPLE(VBOXUSB_DRIVER_NAME)))
return USBDEVICESTATE_HELD_BY_PROXY;
NOREF(pDevice);