hw/xwin: Fix using index as a formal parameter shadows index()

Using index as a formal parameter shadows index() from strings.h

winallpriv.c: In function ‘winInitCmapPrivates’:
winallpriv.c:119:45: error: declaration of ‘index’ shadows a global declaration

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2012-01-25 18:54:57 +00:00
parent 451c5d9175
commit efe96a17bd

View File

@ -110,7 +110,7 @@ winAllocatePrivates(ScreenPtr pScreen)
*/
Bool
winInitCmapPrivates(ColormapPtr pcmap, int index)
winInitCmapPrivates(ColormapPtr pcmap, int i)
{
#if CYGDEBUG
winDebug("winInitCmapPrivates\n");