VirtualBox

Changeset 60373 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Apr 7, 2016 2:21:30 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106457
Message:

Runtime/linux/sysfs.cpp: Convert RTLinuxSysFs* API to always use IPRT status codes instead of using errno and adapt all of its users

File:
1 edited

Legend:

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

    r58640 r60373  
    552552                    ? pProxyDev->paCfgDescs[0].Core.bConfigurationValue
    553553                    : 1;
    554     return RTLinuxSysFsReadIntFile(10, "%s/bConfigurationValue", pszPath); /* returns -1 on failure */
     554    int64_t bCfg = 0;
     555    int rc = RTLinuxSysFsReadIntFile(10, &bCfg, "%s/bConfigurationValue", pszPath);
     556    if (RT_FAILURE(rc))
     557        bCfg = -1;
     558    return (int)bCfg;
    555559#else  /* !VBOX_USB_WITH_SYSFS */
    556560    return -1;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette