VirtualBox

Changeset 97955 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jan 3, 2023 3:46:42 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155046
Message:

IPRT: Warnings (add/linux).

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
2 edited

Legend:

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

    r97894 r97955  
    294294    AssertReturn(pThis->Name.sun_path[0] != '\0', VERR_INVALID_STATE);
    295295
    296     if (chown(pThis->Name.sun_path, -1, gid) == 0)
     296    if (chown(pThis->Name.sun_path, (uid_t)-1, gid) == 0)
    297297    {
    298298        if (chmod(pThis->Name.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == 0)
     
    11361136        }
    11371137        else
    1138         {
    11391138            rc = RTErrConvertFromErrno(errno);
    1140         }
    11411139
    11421140        int rc2 = RTCritSectLeave(&pThis->CritSect);
  • trunk/src/VBox/Runtime/r3/posix/serialport-posix.cpp

    r96407 r97955  
    11051105
    11061106        int rcPsx = 0;
    1107         int msTimeoutLeft = msTimeout == RT_INDEFINITE_WAIT ? -1 : msTimeout;
     1107        int msTimeoutLeft = msTimeout == RT_INDEFINITE_WAIT ? -1 : (int)msTimeout;
    11081108        while (msTimeoutLeft != 0)
    11091109        {
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