[PATCH] libs/wine: Do not use index as Parameter (-Wshadow)
Detlef Riekenberg
wine.dev at web.de
Sat Nov 3 12:12:09 CDT 2007
---
include/wine/unicode.h | 2 +-
libs/wine/cptable.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/wine/unicode.h b/include/wine/unicode.h
index 27d7cee..f47b42c 100644
--- a/include/wine/unicode.h
+++ b/include/wine/unicode.h
@@ -76,7 +76,7 @@ union cptable
};
extern const union cptable *wine_cp_get_table( unsigned int codepage );
-extern const union cptable *wine_cp_enum_table( unsigned int index );
+extern const union cptable *wine_cp_enum_table( unsigned int cpindex );
extern int wine_cp_mbstowcs( const union cptable *table, int flags,
const char *src, int srclen,
diff --git a/libs/wine/cptable.c b/libs/wine/cptable.c
index 60df35c..d24f61f 100644
--- a/libs/wine/cptable.c
+++ b/libs/wine/cptable.c
@@ -174,8 +174,8 @@ const union cptable *wine_cp_get_table(
/* enum valid codepages */
-const union cptable *wine_cp_enum_table( unsigned int index )
+const union cptable *wine_cp_enum_table( unsigned int cpindex )
{
- if (index >= NB_CODEPAGES) return NULL;
- return cptables[index];
+ if (cpindex >= NB_CODEPAGES) return NULL;
+ return cptables[cpindex];
}
--
1.4.1
--=-GRnC9xOGafHfTioGY9V2--
More information about the wine-patches
mailing list