Change some char* to const char* to fix warnigns.

oldstable
Stefan Huehner 2005-07-21 11:59:11 +00:00 committed by Alexandre Julliard
parent 76fdac0368
commit b8585b8d0c
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -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)))