VirtualBox

Changeset 46326 in vbox for trunk/src/VBox/Devices/USB/linux


Ignore:
Timestamp:
May 30, 2013 12:16:53 PM (12 years ago)
Author:
vboxsync
Message:

RT_STR_TUPLE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp

    r44528 r46326  
    477477
    478478                    /* 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=")));
    480480                    psz = RTStrStripL(psz + 4);
    481481                    char *pszNext;
     
    625625     */
    626626#ifdef VBOX_USB_WITH_SYSFS
    627     fUsingSysfs = strncmp(pszAddress, "sysfs:", sizeof("sysfs:") - 1) == 0;
     627    fUsingSysfs = strncmp(pszAddress, RT_STR_TUPLE("sysfs:")) == 0;
    628628    if (fUsingSysfs)
    629629    {
     
    949949                 * "SerialNumber="
    950950                 */
    951                 if ( strncmp(psz, "SerialNumber=", sizeof("SerialNumber=") - 1) )
     951                if (strncmp(psz, RT_STR_TUPLE("SerialNumber=")))
    952952                    break;
    953953
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