summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-08-16 16:59:07 -0400
committerMatt Turner <mattst88@gmail.com>2011-09-21 17:14:44 -0400
commit54770c980cd2b91a8377f975a58ed69def5cfa42 (patch)
tree606ae54d61019884d0ad2d3c46e5be9785682f76 /xkb
parent9edcae78c46286baff42e74bfe26f6ae4d00fe01 (diff)
Cast char* buffers to swap functions
Reviewed-by: Peter Harris <pharris@opentext.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkb.c12
1 files changed, 6 insertions, 6 deletions
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;
}