Changeset 46326 in vbox for trunk/src/VBox/Devices/USB/linux
- Timestamp:
- May 30, 2013 12:16:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
r44528 r46326 477 477 478 478 /* Skip ahead to 'Bus' and compare */ 479 psz = RTStrStripL(psz + 2); Assert(!strncmp(psz, "Bus=", 4));479 psz = RTStrStripL(psz + 2); Assert(!strncmp(psz, RT_STR_TUPLE("Bus="))); 480 480 psz = RTStrStripL(psz + 4); 481 481 char *pszNext; … … 625 625 */ 626 626 #ifdef VBOX_USB_WITH_SYSFS 627 fUsingSysfs = strncmp(pszAddress, "sysfs:", sizeof("sysfs:") - 1) == 0;627 fUsingSysfs = strncmp(pszAddress, RT_STR_TUPLE("sysfs:")) == 0; 628 628 if (fUsingSysfs) 629 629 { … … 949 949 * "SerialNumber=" 950 950 */ 951 if ( strncmp(psz, "SerialNumber=", sizeof("SerialNumber=") - 1))951 if (strncmp(psz, RT_STR_TUPLE("SerialNumber="))) 952 952 break; 953 953
Note:
See TracChangeset
for help on using the changeset viewer.