Sync to Wine-20041201

Eric Pouech <pouech-eric@wanadoo.fr>
- Const correctness fixes.

svn path=/trunk/; revision=11973
This commit is contained in:
Gé van Geldorp 2004-12-07 19:35:19 +00:00
parent bc927431e4
commit 4b3c9f12ad
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ static const union cptable * const cptables[59] =
static int cmp_codepage( const void *codepage, const void *entry )
{
return (unsigned int)codepage - (*(union cptable **)entry)->info.codepage;
return (unsigned int)codepage - (*(const union cptable **)entry)->info.codepage;
}

View file

@ -142,7 +142,7 @@ static inline int wcstombs_sbcs( const struct sbcs_table *table,
ret = -1;
}
if (dst <= (char *)src && dst + 16 > (char *)src)
if (dst <= (const char *)src && dst + 16 > (const char *)src)
{
/* overlapping buffers, do it char by char */
while (srclen--)