summaryrefslogtreecommitdiff
path: root/Xi/getbmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/getbmap.c')
-rw-r--r--Xi/getbmap.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/Xi/getbmap.c b/Xi/getbmap.c
index e2d58972a..b7054f7d2 100644
--- a/Xi/getbmap.c
+++ b/Xi/getbmap.c
@@ -70,10 +70,8 @@ SOFTWARE.
int
SProcXGetDeviceButtonMapping(ClientPtr client)
{
- char n;
-
REQUEST(xGetDeviceButtonMappingReq);
- swaps(&stuff->length, n);
+ swaps(&stuff->length);
return (ProcXGetDeviceButtonMapping(client));
}
@@ -126,9 +124,7 @@ void
SRepXGetDeviceButtonMapping(ClientPtr client, int size,
xGetDeviceButtonMappingReply * rep)
{
- char n;
-
- swaps(&rep->sequenceNumber, n);
- swapl(&rep->length, n);
+ swaps(&rep->sequenceNumber);
+ swapl(&rep->length);
WriteToClient(client, size, (char *)rep);
}