VirtualBox

Changeset 94728 in vbox for trunk/src


Ignore:
Timestamp:
Apr 27, 2022 6:19:51 PM (3 years ago)
Author:
vboxsync
Message:

Main/Update check: Clang build fixes. bugref:7983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp

    r94724 r94728  
    609609
    610610    int64_t const diffLastCheckSecs = RTTimeSpecGetSeconds(&TimeDiff);
    611     int64_t const diffLastCheckDays = diffLastCheckSecs / RT_SEC_1DAY_64;
     611    int64_t const diffLastCheckDays = diffLastCheckSecs / (int64_t)RT_SEC_1DAY_64;
    612612
    613613    /* Be as accurate as possible. */
    614614    *aCheckNeeded = diffLastCheckSecs >= (int64_t)m->uCheckFreqSeconds ? TRUE : FALSE;
    615615
    616     LogRel2(("Update agent (%s): Last update %RU64 days (%RU64 seconds) ago, check frequency is every %RU64 days (%RU64 seconds) -> Check %s\n",
     616    LogRel2(("Update agent (%s): Last update %RI64 days (%RI64 seconds) ago, check frequency is every %RU64 days (%RU64 seconds) -> Check %s\n",
    617617             mData.m_strName.c_str(), diffLastCheckDays, diffLastCheckSecs, cCheckFreqDays, m->uCheckFreqSeconds,
    618618             *aCheckNeeded ? "needed" : "not needed"));
     
    747747
    748748    Utf8Str strMsg;
    749     HRESULT const rc = strMsg.printfVNoThrow(pcszMsgFmt, va);
    750     if (FAILED(rc))
     749    int const vrc2 = strMsg.printfVNoThrow(pcszMsgFmt, va);
     750    if (RT_FAILURE(vrc2))
    751751    {
    752752        va_end(va);
    753         return rc;
     753        return setErrorBoth(VERR_COM_IPRT_ERROR, vrc2, tr("Failed to format update agent error string (%Rrc)"), vrc2);
    754754    }
    755755
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