aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/setmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/setmode.c')
-rw-r--r--xorg-server/Xi/setmode.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/xorg-server/Xi/setmode.c b/xorg-server/Xi/setmode.c
index 5ed09136e..a57cc7b08 100644
--- a/xorg-server/Xi/setmode.c
+++ b/xorg-server/Xi/setmode.c
@@ -92,12 +92,11 @@ ProcXSetDeviceMode(ClientPtr client)
REQUEST(xSetDeviceModeReq);
REQUEST_SIZE_MATCH(xSetDeviceModeReq);
- rep = (xSetDeviceModeReply) {
- .repType = X_Reply,
- .RepType = X_SetDeviceMode,
- .sequenceNumber = client->sequence,
- .length = 0
- };
+
+ rep.repType = X_Reply;
+ rep.RepType = X_SetDeviceMode;
+ rep.sequenceNumber = client->sequence;
+ rep.length = 0;
rc = dixLookupDevice(&dev, stuff->deviceid, client, DixSetAttrAccess);
if (rc != Success)