mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:03:01 +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
1 changed files with 4 additions and 2 deletions
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 */
|
/* 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;
|
unsigned int i;
|
||||||
|
|
||||||
|
if (!(options = _strdup(str))) return;
|
||||||
for (opt = options; opt; opt = next)
|
for (opt = options; opt; opt = next)
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
|
@ -178,6 +179,7 @@ static void parse_options( char *options )
|
||||||
else
|
else
|
||||||
add_option( p, set, clear );
|
add_option( p, set, clear );
|
||||||
}
|
}
|
||||||
|
free( options );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize all options at startup */
|
/* initialize all options at startup */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue