VirtualBox

Changeset 5911 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 2, 2007 9:21:00 PM (17 years ago)
Author:
vboxsync
Message:

RTGetOpt does not alter argv[] does it?

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r5843 r5911  
    2626
    2727
    28 RTDECL(int) RTGetOpt(int argc, char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion)
     28RTDECL(int) RTGetOpt(int argc, const char *argv[], PCRTOPTIONDEF paOptions, size_t cOptions, int *piThis, PRTOPTIONUNION pValueUnion)
    2929{
    3030    pValueUnion->pDef = NULL;
  • trunk/src/VBox/Runtime/testcase/tstGetOpt.cpp

    r5843 r5911  
    5252    };
    5353
    54     char *argv2[] =
     54    const char *argv2[] =
    5555    {
    5656        "-s",               "string1",
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