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 | 26efa09d0c7ee2f6a18547205c84be75376e688b (patch) | |
tree | 5e6aa8befdbacd4277d3247f58a5e89e4534ca31 /glx/single2.c | |
parent | cc5f09c86f7bea23b7546c3491b2c52ce8100a71 (diff) |
Use C99 designated initializers in glx 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 'glx/single2.c')
-rw-r--r-- | glx/single2.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/glx/single2.c b/glx/single2.c index 4d8ea4e43..9597d29fe 100644 --- a/glx/single2.c +++ b/glx/single2.c @@ -193,12 +193,14 @@ __glXDisp_RenderMode(__GLXclientState * cl, GLbyte * pc) */ noChangeAllowed:; client = cl->client; - reply.length = nitems; - reply.type = X_Reply; - reply.sequenceNumber = client->sequence; - reply.retval = retval; - reply.size = nitems; - reply.newMode = newMode; + reply = (xGLXRenderModeReply) { + .type = X_Reply, + .sequenceNumber = client->sequence, + .length = nitems, + .retval = retval, + .size = nitems, + .newMode = newMode + }; WriteToClient(client, sz_xGLXRenderModeReply, &reply); if (retBytes) { WriteToClient(client, retBytes, retBuffer); |