From b8585b8d0cb5c7e7dda28424821c1a5a8fa6d7e8 Mon Sep 17 00:00:00 2001 From: Stefan Huehner Date: Thu, 21 Jul 2005 11:59:11 +0000 Subject: [PATCH] Change some char* to const char* to fix warnigns. --- dlls/riched20/writer.c | 4 ++-- dlls/wineps/download.c | 2 +- tools/widl/parser.y | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index 65d41e33d4d..8ba433c41b8 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -109,7 +109,7 @@ ME_StreamOutMove(ME_TextEditor *editor, BYTE *buffer, int len) static BOOL -ME_StreamOutPrint(ME_TextEditor *editor, char *format, ...) +ME_StreamOutPrint(ME_TextEditor *editor, const char *format, ...) { char string[STREAMOUT_BUFFER_SIZE]; /* This is going to be enough */ int len; @@ -126,7 +126,7 @@ ME_StreamOutPrint(ME_TextEditor *editor, char *format, ...) static BOOL ME_StreamOutRTFHeader(ME_TextEditor *editor, int dwFormat) { - char *cCharSet = NULL; + const char *cCharSet = NULL; UINT nCodePage; LANGID language; BOOL success; diff --git a/dlls/wineps/download.c b/dlls/wineps/download.c index 519198b427c..0c37c46ea78 100644 --- a/dlls/wineps/download.c +++ b/dlls/wineps/download.c @@ -271,7 +271,7 @@ BOOL PSDRV_EmptyDownloadList(PSDRV_PDEVICE *physDev, BOOL write_undef) DOWNLOAD *pdl, *old; static const char undef[] = "/%s findfont 40 scalefont setfont /%s undefinefont\n"; char buf[sizeof(undef) + 200]; - char *default_font = physDev->pi->ppd->DefaultFont ? + const char *default_font = physDev->pi->ppd->DefaultFont ? physDev->pi->ppd->DefaultFont : "Courier"; if(physDev->font.fontloc == Download) { diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 32a95bf3407..fbabccd34f6 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -86,7 +86,7 @@ static class_t *make_class(char *name); static type_t *reg_type(type_t *type, char *name, int t); static type_t *reg_types(type_t *type, var_t *names, int t); -static type_t *find_type(char *name, int t); +static type_t *find_type(const char *name, int t); static type_t *find_type2(char *name, int t); static type_t *get_type(unsigned char type, char *name, int t); static type_t *get_typev(unsigned char type, var_t *name, int t); @@ -1168,7 +1168,7 @@ static type_t *reg_types(type_t *type, var_t *names, int t) return type; } -static type_t *find_type(char *name, int t) +static type_t *find_type(const char *name, int t) { struct rtype *cur = type_hash[hash_ident(name)]; while (cur && (cur->t != t || strcmp(cur->name, name)))