VirtualBox

Changeset 18460 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Mar 28, 2009 4:56:59 AM (16 years ago)
Author:
vboxsync
Message:

tstShflCase: size_t warnings.

File:
1 edited

Legend:

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

    r14062 r18460  
    133133        if (iDirFile == RT_ELEMENTS(pszDirListC))
    134134            return VERR_NO_MORE_FILES;
    135         pDirEntry->cbName = strlen(pszDirListC[iDirFile]);
     135        pDirEntry->cbName = (uint16_t)strlen(pszDirListC[iDirFile]);
    136136        strcpy(pDirEntry->szName, pszDirListC[iDirFile++]);
    137137        break;
     
    139139        if (iDirFile == RT_ELEMENTS(pszDirListTestdir))
    140140            return VERR_NO_MORE_FILES;
    141         pDirEntry->cbName = strlen(pszDirListTestdir[iDirFile]);
     141        pDirEntry->cbName = (uint16_t)strlen(pszDirListTestdir[iDirFile]);
    142142        strcpy(pDirEntry->szName, pszDirListTestdir[iDirFile++]);
    143143        break;
     
    145145        if (iDirFile == RT_ELEMENTS(pszDirListSUBDIR))
    146146            return VERR_NO_MORE_FILES;
    147         pDirEntry->cbName = strlen(pszDirListSUBDIR[iDirFile]);
     147        pDirEntry->cbName = (uint16_t)strlen(pszDirListSUBDIR[iDirFile]);
    148148        strcpy(pDirEntry->szName, pszDirListSUBDIR[iDirFile++]);
    149149        break;
     
    192192{
    193193    PRTDIRENTRYEX  pDirEntry = NULL;
    194     uint32_t       cbDirEntry, cbComponent;
     194    uint32_t       cbDirEntry;
     195    size_t         cbComponent;
    195196    int            rc = VERR_FILE_NOT_FOUND;
    196197    PRTDIR         hSearch = 0;
     
    274275    {
    275276        /* strip off the last path component, that contains the wildcard(s) */
    276         uint32_t len = strlen(pszFullPath);
     277        size_t  len = strlen(pszFullPath);
    277278        char    *src = pszFullPath + len - 1;
    278279
     
    311312    if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND)
    312313    {
    313         uint32_t len = strlen(pszFullPath);
     314        size_t  len = strlen(pszFullPath);
    314315        char    *src = pszFullPath + len - 1;
    315316
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