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/single2swap.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/single2swap.c')
-rw-r--r-- | glx/single2swap.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/glx/single2swap.c b/glx/single2swap.c index 9da2afdd1..1ca532836 100644 --- a/glx/single2swap.c +++ b/glx/single2swap.c @@ -205,12 +205,14 @@ __glXDispSwap_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 + }; __GLX_SWAP_SHORT(&reply.sequenceNumber); __GLX_SWAP_INT(&reply.length); __GLX_SWAP_INT(&reply.retval); |