VirtualBox

Changeset 57918 in vbox


Ignore:
Timestamp:
Sep 27, 2015 11:37:26 PM (9 years ago)
Author:
vboxsync
Message:

process-posix.cpp: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-posix.cpp

    r57916 r57918  
    173173         */
    174174        int32_t cbPwdMax = sysconf(_SC_GETPW_R_SIZE_MAX);
    175         if (cbPwdMax <= sizeof(_1K))
     175        if (cbPwdMax <= _1K)
    176176            cbPwdMax = _1K;
    177177        else
    178             AssertStmt(cbPwdMax <= 32U*_1M, cbPwdMax = 32U*_1M);
     178            AssertStmt(cbPwdMax <= 32*_1M, cbPwdMax = 32*_1M);
    179179        char *pchBuf = (char *)RTMemTmpAllocZ(cbPwdMax);
    180         if (pbBuf)
     180        if (pchBuf)
    181181        {
    182182            /*
     
    201201                    if (pcbUser)
    202202                        *pcbUser = cbTmp;
    203                     if (cbPwdUser <= cbUser)
     203                    if (cbTmp <= cbUser)
    204204                    {
    205205                        memcpy(pszUser, pszTmp, cbTmp);
     
    236236         */
    237237        int32_t cbPwdMax = sysconf(_SC_GETPW_R_SIZE_MAX);
    238         if (cbPwdMax <= sizeof(_1K))
     238        if (cbPwdMax <= _1K)
    239239            cbPwdMax = _1K;
    240240        else
    241             AssertStmt(cbPwdMax <= 32U*_1M, cbPwdMax = 32U*_1M);
     241            AssertStmt(cbPwdMax <= 32*_1M, cbPwdMax = 32*_1M);
    242242        char *pchBuf = (char *)RTMemTmpAllocZ(cbPwdMax);
    243         if (pbBuf)
     243        if (pchBuf)
    244244        {
    245245            /*
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