VirtualBox

Changeset 35815 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Feb 1, 2011 2:45:41 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69796
Message:

warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c

    r35809 r35815  
    10621062{
    10631063    uint32_t nUnit = RTStrToUInt32(pcszName + sizeof(VBOXNETADP_NAME) - 1);
     1064    bool fOld;
    10641065
    10651066    if (nUnit >= VBOXNETADP_MAX_UNITS)
    10661067        return -1;
    10671068
    1068     bool bOld = ASMAtomicBitTestAndSet(g_aUnits, nUnit);
    1069     return bOld ? -1 : (int)nUnit;
     1069    fOld = ASMAtomicBitTestAndSet(g_aUnits, nUnit);
     1070    return fOld ? -1 : (int)nUnit;
    10701071}
    10711072
    10721073DECLINLINE(int) vboxNetAdpGetNextAvailableUnit(void)
    10731074{
    1074     bool bOld;
     1075    bool fOld;
    10751076    int nUnit;
    10761077    /* There is absolutely no chance that all units are taken */
     
    10791080        if (nUnit < 0)
    10801081            break;
    1081         bOld = ASMAtomicBitTestAndSet(g_aUnits, nUnit);
    1082     } while (bOld);
     1082        fOld = ASMAtomicBitTestAndSet(g_aUnits, nUnit);
     1083    } while (fOld);
    10831084
    10841085    return nUnit;
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