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:29 -0700 |
commit | d792ac125a0462a04a930af543cbc732f8cdab7d (patch) | |
tree | 669f3dec8a4a38c2ec22caf42d42362533a04f10 /dix/selection.c | |
parent | 69fa5630b5902aaad267fc67d0da4ca93625886a (diff) |
Use C99 designated initializers in dix 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 'dix/selection.c')
-rw-r--r-- | dix/selection.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dix/selection.c b/dix/selection.c index dfdcfdc64..80b58939c 100644 --- a/dix/selection.c +++ b/dix/selection.c @@ -238,10 +238,11 @@ ProcGetSelectionOwner(ClientPtr client) return BadAtom; } - memset(&reply, 0, sizeof(xGetSelectionOwnerReply)); - reply.type = X_Reply; - reply.length = 0; - reply.sequenceNumber = client->sequence; + reply = (xGetSelectionOwnerReply) { + .type = X_Reply, + .sequenceNumber = client->sequence, + .length = 0, + }; rc = dixLookupSelection(&pSel, stuff->id, client, DixGetAttrAccess); if (rc == Success) |