VirtualBox

Changeset 85889 in vbox


Ignore:
Timestamp:
Aug 26, 2020 11:47:12 AM (4 years ago)
Author:
vboxsync
Message:

VDISKRAWPARTDESC: Unconst some the pointers, it makes for ugly casts in new VMDK code. bugref:9224

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd.h

    r85884 r85889  
    156156     * partition will not be accessible to the guest. The size of the data area
    157157     * must still be set correctly. */
    158     const char      *pszRawDevice;
     158    char           *pszRawDevice;
    159159    /** Pointer to the partitioning info. NULL means this is a regular data
    160160     * area on disk, non-NULL denotes data which should be copied to the
    161161     * partition data overlay. */
    162     const void      *pvPartitionData;
     162    void           *pvPartitionData;
    163163    /** Offset where the data starts in this device. */
    164164    uint64_t        offStartInDevice;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r85884 r85889  
    17291729                }
    17301730
    1731                 pPartDesc->pszRawDevice = pszRawName;
     1731                pPartDesc->pszRawDevice = (char *)pszRawName;
    17321732                pPartDesc->offStartInDevice = uStartOffset;
    17331733            }
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