From 54770c980cd2b91a8377f975a58ed69def5cfa42 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 16 Aug 2011 16:59:07 -0400 Subject: Cast char* buffers to swap functions Reviewed-by: Peter Harris Signed-off-by: Matt Turner --- xkb/xkb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xkb') diff --git a/xkb/xkb.c b/xkb/xkb.c index 8e42a7fb2..0b85953f4 100644 --- a/xkb/xkb.c +++ b/xkb/xkb.c @@ -1109,7 +1109,7 @@ register unsigned i; register int nSyms= outMap->nSyms; swaps(&outMap->nSyms); while (nSyms-->0) { - swapl(buf); + swapl((int *)buf); buf+= 4; } } @@ -3646,21 +3646,21 @@ char * desc; if (which&XkbKeycodesNameMask) { *((CARD32 *)desc)= xkb->names->keycodes; if (client->swapped) { - swapl(desc); + swapl((int *)desc); } desc+= 4; } if (which&XkbGeometryNameMask) { *((CARD32 *)desc)= xkb->names->geometry; if (client->swapped) { - swapl(desc); + swapl((int *)desc); } desc+= 4; } if (which&XkbSymbolsNameMask) { *((CARD32 *)desc)= xkb->names->symbols; if (client->swapped) { - swapl(desc); + swapl((int *)desc); } desc+= 4; } @@ -3675,14 +3675,14 @@ char * desc; if (which&XkbTypesNameMask) { *((CARD32 *)desc)= (CARD32)xkb->names->types; if (client->swapped) { - swapl(desc); + swapl((int *)desc); } desc+= 4; } if (which&XkbCompatNameMask) { *((CARD32 *)desc)= (CARD32)xkb->names->compat; if (client->swapped) { - swapl(desc); + swapl((int *)desc); } desc+= 4; } -- cgit v1.2.3