VirtualBox

Changeset 34147 in vbox


Ignore:
Timestamp:
Nov 17, 2010 8:46:42 PM (14 years ago)
Author:
vboxsync
Message:

Storage: a few warnings and a typo

Location:
trunk/src/VBox/Storage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/DMG.cpp

    r33816 r34147  
    21032103
    21042104    /* Image must be opened and the new flags must be valid. */
    2105     if (!pThis || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO || VD_OPEN_FLAGS_SHAREABLE | VD_OPEN_FLAGS_SEQUENTIAL)))
     2105    if (!pThis || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_SHAREABLE | VD_OPEN_FLAGS_SEQUENTIAL)))
    21062106    {
    21072107        rc = VERR_INVALID_PARAMETER;
     
    21582158        rc = VERR_VD_NOT_OPENED;
    21592159
    2160 out:
    21612160    LogFlowFunc(("returns %Rrc\n", rc));
    21622161    return rc;
  • trunk/src/VBox/Storage/Parallels.cpp

    r33567 r34147  
    10141014        rc = VERR_VD_NOT_OPENED;
    10151015
    1016 out:
    10171016    LogFlowFunc(("returns %Rrc\n", rc));
    10181017    return rc;
  • trunk/src/VBox/Storage/VHD.cpp

    r33567 r34147  
    21512151        rc = VERR_VD_NOT_OPENED;
    21522152
    2153 out:
    21542153    LogFlowFunc(("returns %Rrc\n", rc));
    21552154    return rc;
     
    28862885            /* Calculate how many sectors nee to be relocated. */
    28872886            uint64_t cbOverlapping = offStartDataNew - offStartDataOld;
    2888             unsigned cBlocksReloc = cbOverlapping / cbBlock;
     2887            unsigned cBlocksReloc = (unsigned)(cbOverlapping / cbBlock);
    28892888            if (cbOverlapping % cbBlock)
    28902889                cBlocksReloc++;
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