summaryrefslogtreecommitdiff
path: root/hw/xwin/winallpriv.c
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-01-25 18:54:57 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-10-16 21:23:54 +0100
commitefe96a17bd741f222ccb226d306b5c1dc1f25ade (patch)
treebff42c78667873e1377e4c39680c2f970c77551c /hw/xwin/winallpriv.c
parent451c5d9175cdeb36fd614502ff0317f968490dfc (diff)
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>
Diffstat (limited to 'hw/xwin/winallpriv.c')
-rw-r--r--hw/xwin/winallpriv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winallpriv.c b/hw/xwin/winallpriv.c
index ea3126fa0..cc3b3d1ba 100644
--- a/hw/xwin/winallpriv.c
+++ b/hw/xwin/winallpriv.c
@@ -110,7 +110,7 @@ winAllocatePrivates(ScreenPtr pScreen)
*/
Bool
-winInitCmapPrivates(ColormapPtr pcmap, int index)
+winInitCmapPrivates(ColormapPtr pcmap, int i)
{
#if CYGDEBUG
winDebug("winInitCmapPrivates\n");