mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
constify parse_options parameter like it is done in wine
svn path=/trunk/; revision=31877
This commit is contained in:
parent
e51a783417
commit
21613e19af
6
reactos/lib/3rdparty/libwine/debug.c
vendored
6
reactos/lib/3rdparty/libwine/debug.c
vendored
|
@ -134,11 +134,12 @@ static void add_option( const char *name, unsigned char set, unsigned char clear
|
|||
}
|
||||
|
||||
/* parse a set of debugging option specifications and add them to the option list */
|
||||
static void parse_options( char *options )
|
||||
static void parse_options( const char *str )
|
||||
{
|
||||
char *opt, *next;
|
||||
char *opt, *next, *options;
|
||||
unsigned int i;
|
||||
|
||||
if (!(options = _strdup(str))) return;
|
||||
for (opt = options; opt; opt = next)
|
||||
{
|
||||
const char *p;
|
||||
|
@ -178,6 +179,7 @@ static void parse_options( char *options )
|
|||
else
|
||||
add_option( p, set, clear );
|
||||
}
|
||||
free( options );
|
||||
}
|
||||
|
||||
/* initialize all options at startup */
|
||||
|
|
Loading…
Reference in a new issue