From 93232de7752ed7f4490f5253c890c0a5d888b94f Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 5 Jul 2005 20:47:48 +0000 Subject: [PATCH] Sync to Wine-20050628: Eric Pouech - Const correctness fixes. Mike McCormack - Fix some declaration and write string warnings. svn path=/trunk/; revision=16436 --- reactos/tools/unicode/cptable.c | 2 +- reactos/tools/unicode/mbtowc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/unicode/cptable.c b/reactos/tools/unicode/cptable.c index ce5d6cfb660..58574b23fc3 100644 --- a/reactos/tools/unicode/cptable.c +++ b/reactos/tools/unicode/cptable.c @@ -156,7 +156,7 @@ static const union cptable * const cptables[60] = static int cmp_codepage( const void *codepage, const void *entry ) { - return (unsigned int)codepage - (*(const union cptable **)entry)->info.codepage; + return (unsigned int)codepage - (*(const union cptable *const *)entry)->info.codepage; } diff --git a/reactos/tools/unicode/mbtowc.c b/reactos/tools/unicode/mbtowc.c index 1c85b2429d8..71c74fdeed4 100644 --- a/reactos/tools/unicode/mbtowc.c +++ b/reactos/tools/unicode/mbtowc.c @@ -25,7 +25,7 @@ typedef unsigned char uchar; /* get the decomposition of a Unicode char */ -int get_decomposition( WCHAR src, WCHAR *dst, unsigned int dstlen ) +static int get_decomposition( WCHAR src, WCHAR *dst, unsigned int dstlen ) { extern const WCHAR unicode_decompose_table[]; const WCHAR *ptr = unicode_decompose_table; -- 2.17.1