aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/setbmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/setbmap.c')
-rw-r--r--xorg-server/Xi/setbmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/Xi/setbmap.c b/xorg-server/Xi/setbmap.c
index 110f5e91e..4f0f4ab9d 100644
--- a/xorg-server/Xi/setbmap.c
+++ b/xorg-server/Xi/setbmap.c
@@ -100,10 +100,11 @@ ProcXSetDeviceButtonMapping(ClientPtr client)
if (ret != Success)
return ret;
+
rep.repType = X_Reply;
rep.RepType = X_SetDeviceButtonMapping;
- rep.length = 0;
rep.sequenceNumber = client->sequence;
+ rep.length = 0;
rep.status = MappingSuccess;
ret =
@@ -134,5 +135,5 @@ SRepXSetDeviceButtonMapping(ClientPtr client, int size,
{
swaps(&rep->sequenceNumber);
swapl(&rep->length);
- WriteToClient(client, size, (char *) rep);
+ WriteToClient(client, size, rep);
}