diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:12:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:58:30 -0700 |
commit | 2f5caeaddb3616dc9ff57d784f7feba589c536e7 (patch) | |
tree | 1909962a69a7a643c6f66b0320416cbdca191e59 /Xi/listdev.c | |
parent | 6a721e3af5e11bae1d59ca551a02470f35d9e844 (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/listdev.c')
-rw-r--r-- | Xi/listdev.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Xi/listdev.c b/Xi/listdev.c index 1fff73804..014c61db0 100644 --- a/Xi/listdev.c +++ b/Xi/listdev.c @@ -342,11 +342,12 @@ ProcXListInputDevices(ClientPtr client) REQUEST_SIZE_MATCH(xListInputDevicesReq); - memset(&rep, 0, sizeof(xListInputDevicesReply)); - rep.repType = X_Reply; - rep.RepType = X_ListInputDevices; - rep.length = 0; - rep.sequenceNumber = client->sequence; + rep = (xListInputDevicesReply) { + .repType = X_Reply, + .RepType = X_ListInputDevices, + .sequenceNumber = client->sequence, + .length = 0 + }; /* allocate space for saving skip value */ skip = calloc(sizeof(Bool), inputInfo.numDevices); |