VirtualBox

Changeset 14215 in vbox for trunk


Ignore:
Timestamp:
Nov 14, 2008 2:48:49 PM (16 years ago)
Author:
vboxsync
Message:

Fixed some warnings

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/mappings.cpp

    r13837 r14215  
    7777            FolderMapping[i].fValid    = true;
    7878            FolderMapping[i].cMappings = 0;
    79             FolderMapping[i].fWritable = fWritable;
     79            FolderMapping[i].fWritable = !!fWritable;
    8080
    8181            /* Check if the host file system is case sensitive */
     
    329329    Assert(FolderMapping[index].cMappings == 1 || FolderMapping[index].fGuestCaseSensitive == fCaseSensitive);
    330330    FolderMapping[index].fGuestCaseSensitive = fCaseSensitive;
    331     *pRoot = index;
     331    *pRoot = (SHFLROOT)index;
    332332    return VINF_SUCCESS;
    333333}
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r14062 r14215  
    108108    Log2(("vbsfCorrectCasing: %s %s\n", pszFullPath, pszStartComponent));
    109109
    110     cbComponent = strlen(pszStartComponent);
     110    cbComponent = (uint32_t) strlen(pszStartComponent);
    111111
    112112    cbDirEntry = 4096;
     
    223223
    224224                if (pcbFullPathRoot)
    225                     *pcbFullPathRoot = cbUtf8Root; /* Must index the path delimiter.  */
     225                    *pcbFullPathRoot = (uint32_t)cbUtf8Root; /* Must index the path delimiter.  */
    226226            }
    227227
     
    301301            char *dst = pszFullPath;
    302302
    303             cbRoot = strlen(dst);
     303            cbRoot = (uint32_t)strlen(dst);
    304304            if (dst[cbRoot - 1] != RTPATH_DELIMITER)
    305305            {
     
    346346                }
    347347
    348                 uint32_t l = strlen (dst);
     348                uint32_t l = (uint32_t)strlen (dst);
    349349
    350350                cb -= l;
     
    375375            {
    376376                /* strip off the last path component, that contains the wildcard(s) */
    377                 uint32_t len = strlen(pszFullPath);
     377                uint32_t len = (uint32_t)strlen(pszFullPath);
    378378                char    *src = pszFullPath + len - 1;
    379379
     
    412412            if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND)
    413413            {
    414                 uint32_t len = strlen(pszFullPath);
     414                uint32_t len = (uint32_t)strlen(pszFullPath);
    415415                char    *src = pszFullPath + len - 1;
    416416
     
    14141414                        }
    14151415#endif
    1416             pSFDEntry->name.u16Length = RTUtf16Len (pSFDEntry->name.String.ucs2) * 2;
     1416            pSFDEntry->name.u16Length = (uint32_t)RTUtf16Len (pSFDEntry->name.String.ucs2) * 2;
    14171417            pSFDEntry->name.u16Size = pSFDEntry->name.u16Length + 2;
    14181418
  • trunk/src/VBox/Main/KeyboardImpl.cpp

    r13837 r14215  
    187187    /// @todo is it actually possible that not all scancodes can be transmitted?
    188188    if (codesStored)
    189         *codesStored = keys.size();
     189        *codesStored = (uint32_t)keys.size();
    190190
    191191    return rc;
  • trunk/src/VBox/Main/hgcm/HGCM.cpp

    r13837 r14215  
    11111111
    11121112        /* Save the length of the service name. */
    1113         rc = SSMR3PutU32(pSSM, strlen(pSvc->m_pszSvcName) + 1);
     1113        rc = SSMR3PutU32(pSSM, (uint32_t) strlen(pSvc->m_pszSvcName) + 1);
    11141114        AssertRCReturn(rc, rc);
    11151115
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