Use C99 designated initializers in DRI2GetParam replies
DRI2GetParam was going through review in parallel with main batch of C99 initialization changes - sync up now that both have landed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
a6c5b8d3ee
commit
6910280297
|
@ -550,15 +550,16 @@ static int
|
||||||
ProcDRI2GetParam(ClientPtr client)
|
ProcDRI2GetParam(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xDRI2GetParamReq);
|
REQUEST(xDRI2GetParamReq);
|
||||||
xDRI2GetParamReply rep;
|
xDRI2GetParamReply rep = {
|
||||||
|
.type = X_Reply,
|
||||||
|
.sequenceNumber = client->sequence,
|
||||||
|
.length = 0
|
||||||
|
};
|
||||||
DrawablePtr pDrawable;
|
DrawablePtr pDrawable;
|
||||||
CARD64 value;
|
CARD64 value;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xDRI2GetParamReq);
|
REQUEST_SIZE_MATCH(xDRI2GetParamReq);
|
||||||
rep.type = X_Reply;
|
|
||||||
rep.length = 0;
|
|
||||||
rep.sequenceNumber = client->sequence;
|
|
||||||
|
|
||||||
if (!validDrawable(client, stuff->drawable, DixReadAccess,
|
if (!validDrawable(client, stuff->drawable, DixReadAccess,
|
||||||
&pDrawable, &status))
|
&pDrawable, &status))
|
||||||
|
|
Loading…
Reference in New Issue