VirtualBox

Changeset 67124 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 28, 2017 12:21:57 PM (8 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tarcmd.cpp

    r66602 r67124  
    6464
    6565/** File format. */
    66 typedef enum RTZIPTARFORMAT
     66typedef enum RTZIPTARCMDFORMAT
    6767{
    68     RTZIPTARFORMAT_INVALID = 0,
     68    RTZIPTARCMDFORMAT_INVALID = 0,
    6969    /** Autodetect if possible, defaulting to TAR. */
    70     RTZIPTARFORMAT_AUTO_DEFAULT,
     70    RTZIPTARCMDFORMAT_AUTO_DEFAULT,
    7171    /** TAR.  */
    72     RTZIPTARFORMAT_TAR,
     72    RTZIPTARCMDFORMAT_TAR,
    7373    /** XAR.  */
    74     RTZIPTARFORMAT_XAR
    75 } RTZIPTARFORMAT;
     74    RTZIPTARCMDFORMAT_XAR
     75} RTZIPTARCMDFORMAT;
    7676
    7777
     
    8585{
    8686    /** The file format. */
    87     RTZIPTARFORMAT enmFormat;
     87    RTZIPTARCMDFORMAT enmFormat;
    8888
    8989    /** The operation (Acdrtux or RTZIPTARCMD_OPT_DELETE). */
     
    258258     * Open the filesystem stream.
    259259     */
    260     if (pOpts->enmFormat == RTZIPTARFORMAT_TAR)
     260    if (pOpts->enmFormat == RTZIPTARCMDFORMAT_TAR)
    261261        rc = RTZipTarFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss);
    262     else if (pOpts->enmFormat == RTZIPTARFORMAT_XAR)
     262    else if (pOpts->enmFormat == RTZIPTARCMDFORMAT_XAR)
    263263#ifdef IPRT_WITH_XAR /* Requires C++ and XML, so only in some configruation of IPRT. */
    264264        rc = RTZipXarFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss);
     
    10111011    RTZIPTARCMDOPS Opts;
    10121012    RT_ZERO(Opts);
    1013     Opts.enmFormat = RTZIPTARFORMAT_AUTO_DEFAULT;
     1013    Opts.enmFormat = RTZIPTARCMDFORMAT_AUTO_DEFAULT;
    10141014    Opts.uidOwner = NIL_RTUID;
    10151015    Opts.gidGroup = NIL_RTUID;
     
    11401140            case RTZIPTARCMD_OPT_FORMAT:
    11411141                if (!strcmp(ValueUnion.psz, "auto") || !strcmp(ValueUnion.psz, "default"))
    1142                     Opts.enmFormat = RTZIPTARFORMAT_AUTO_DEFAULT;
     1142                    Opts.enmFormat = RTZIPTARCMDFORMAT_AUTO_DEFAULT;
    11431143                else if (!strcmp(ValueUnion.psz, "tar"))
    1144                     Opts.enmFormat = RTZIPTARFORMAT_TAR;
     1144                    Opts.enmFormat = RTZIPTARCMDFORMAT_TAR;
    11451145                else if (!strcmp(ValueUnion.psz, "xar"))
    1146                     Opts.enmFormat = RTZIPTARFORMAT_XAR;
     1146                    Opts.enmFormat = RTZIPTARCMDFORMAT_XAR;
    11471147                else
    11481148                    return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Unknown archive format: '%s'", ValueUnion.psz);
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