Commit 9bb19ac2 authored by Daniel Marmier's avatar Daniel Marmier Committed by Alexandre Julliard

Fixed warnings with gcc option "-Wwrite-strings".

parent ee94596d
......@@ -143,12 +143,13 @@ void wine_dbg_add_option( const char *name, unsigned char set, unsigned char cle
/* parse a set of debugging option specifications and add them to the option list */
int wine_dbg_parse_options( const char *str )
{
char *p, *opt, *next, *options;
char *opt, *next, *options;
int i, errors = 0;
if (!(options = strdup(str))) return -1;
for (opt = options; opt; opt = next)
{
const char *p;
unsigned char set = 0, clear = 0;
if ((next = strchr( opt, ',' ))) *next++ = 0;
......
......@@ -58,13 +58,13 @@ char* g_lpstrCharSet = NULL;
char* g_lpstrInputFile = NULL;
int g_outputPoints = 0;
static char* errorDLLRead = "Unable to read Windows DLL.\n";
static char* errorFNTRead = "Unable to read .FNT file.\n";
static char* errorOpenFile = "Unable to open file.\n";
static char* errorMemory = "Memory allocation error.\n";
static char* errorFile = "Corrupt or invalid file.\n";
static char* errorFontData = "Unable to parse font data: Error ";
static char* errorEmpty = "No fonts found.\n";
static const char* errorDLLRead = "Unable to read Windows DLL.\n";
static const char* errorFNTRead = "Unable to read .FNT file.\n";
static const char* errorOpenFile = "Unable to open file.\n";
static const char* errorMemory = "Memory allocation error.\n";
static const char* errorFile = "Corrupt or invalid file.\n";
static const char* errorFontData = "Unable to parse font data: Error ";
static const char* errorEmpty = "No fonts found.\n";
/* info */
......
......@@ -191,7 +191,7 @@ extern int kill_at;
extern char *owner_name;
extern char *dll_name;
extern char *dll_file_name;
extern char *init_func;
extern const char *init_func;
extern char *input_file_name;
extern const char *output_file_name;
extern char **debug_channels;
......
......@@ -66,7 +66,7 @@ int debugging = 0;
char *owner_name = NULL;
char *dll_name = NULL;
char *dll_file_name = NULL;
char *init_func = NULL;
const char *init_func = NULL;
char **debug_channels = NULL;
char **lib_path = NULL;
......
......@@ -120,7 +120,7 @@ static void function_header( FILE *outfile, const char *name )
*/
static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk, int short_ret )
{
char *name = thunk? "thunk" : reg_func? "regs" : short_ret? "word" : "long";
const char *name = thunk? "thunk" : reg_func? "regs" : short_ret? "word" : "long";
/* Function header */
if (thunk) function_header( outfile, "__wine_call_from_16_thunk" );
......@@ -753,7 +753,7 @@ static void BuildRet16Func( FILE *outfile )
*/
static void BuildCallTo32CBClient( FILE *outfile, BOOL isEx )
{
char *name = isEx? "CBClientEx" : "CBClient";
const char *name = isEx? "CBClientEx" : "CBClient";
int size = isEx? 24 : 12;
/* Function header */
......@@ -889,7 +889,7 @@ static void BuildCallTo32CBClient( FILE *outfile, BOOL isEx )
static void BuildCallTo32CBClientRet( FILE *outfile, BOOL isEx )
{
char *name = isEx? "CBClientEx" : "CBClient";
const char *name = isEx? "CBClientEx" : "CBClient";
/* '16-bit' return stub */
......
......@@ -346,7 +346,7 @@ static void BuildCallFrom16Func( FILE *outfile, const char *profile, const char
int usecdecl = 0;
int varargs = 0;
const char *args = profile + 7;
char *ret_type;
const char *ret_type;
/* Parse function type */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment