ecore_imf_xim: Rename variable to avoid shadowing

index is already used in string.h, avoid it here.
src/modules/immodules/xim/ecore_imf_xim.c:116: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>

SVN revision: 71442
This commit is contained in:
Stefan Schmidt 2012-05-26 22:01:53 +00:00 committed by Stefan Schmidt
parent 9d9b182ad9
commit 76367dd846
1 changed files with 3 additions and 3 deletions

View File

@ -113,14 +113,14 @@ static void xim_destroy_callback(XIM xim,
static unsigned int
utf8_offset_to_index(const char *str, int offset)
{
int index = 0;
int idx = 0;
int i;
for (i = 0; i < offset; i++)
{
eina_unicode_utf8_get_next(str, &index);
eina_unicode_utf8_get_next(str, &idx);
}
return index;
return idx;
}
#endif