summaryrefslogtreecommitdiff
path: root/Xi/getfctl.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-09 19:12:43 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-09 19:58:30 -0700
commit2f5caeaddb3616dc9ff57d784f7feba589c536e7 (patch)
tree1909962a69a7a643c6f66b0320416cbdca191e59 /Xi/getfctl.c
parent6a721e3af5e11bae1d59ca551a02470f35d9e844 (diff)
Use C99 designated initializers in Xinput Replies
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Tested-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'Xi/getfctl.c')
-rw-r--r--Xi/getfctl.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/Xi/getfctl.c b/Xi/getfctl.c
index 5f97cc3a9..599b2ef97 100644
--- a/Xi/getfctl.c
+++ b/Xi/getfctl.c
@@ -295,11 +295,13 @@ ProcXGetFeedbackControl(ClientPtr client)
if (rc != Success)
return rc;
- rep.repType = X_Reply;
- rep.RepType = X_GetFeedbackControl;
- rep.length = 0;
- rep.sequenceNumber = client->sequence;
- rep.num_feedbacks = 0;
+ rep = (xGetFeedbackControlReply) {
+ .repType = X_Reply,
+ .RepType = X_GetFeedbackControl,
+ .sequenceNumber = client->sequence,
+ .length = 0,
+ .num_feedbacks = 0
+ };
for (k = dev->kbdfeed; k; k = k->next) {
rep.num_feedbacks++;