diff options
Diffstat (limited to 'xorg-server/dbe')
-rw-r--r-- | xorg-server/dbe/dbe.c | 34 | ||||
-rw-r--r-- | xorg-server/dbe/makefile | 4 |
2 files changed, 20 insertions, 18 deletions
diff --git a/xorg-server/dbe/dbe.c b/xorg-server/dbe/dbe.c index 9039d8045..38fd22b77 100644 --- a/xorg-server/dbe/dbe.c +++ b/xorg-server/dbe/dbe.c @@ -119,16 +119,16 @@ static int ProcDbeGetVersion(ClientPtr client) { /* REQUEST(xDbeGetVersionReq); */ - xDbeGetVersionReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, - .majorVersion = DBE_MAJOR_VERSION, - .minorVersion = DBE_MINOR_VERSION - }; + xDbeGetVersionReply rep; REQUEST_SIZE_MATCH(xDbeGetVersionReq); + rep.type = X_Reply; + rep.length = 0; + rep.sequenceNumber = client->sequence; + rep.majorVersion = DBE_MAJOR_VERSION; + rep.minorVersion = DBE_MINOR_VERSION; + if (client->swapped) { swaps(&rep.sequenceNumber); } @@ -668,12 +668,10 @@ ProcDbeGetVisualInfo(ClientPtr client) length += pScrVisInfo[i].count * sizeof(xDbeVisInfo); } - rep = (xDbeGetVisualInfoReply) { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = bytes_to_int32(length), - .m = count - }; + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = bytes_to_int32(length); + rep.m = count; if (client->swapped) { swaps(&rep.sequenceNumber); @@ -758,11 +756,7 @@ static int ProcDbeGetBackBufferAttributes(ClientPtr client) { REQUEST(xDbeGetBackBufferAttributesReq); - xDbeGetBackBufferAttributesReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0 - }; + xDbeGetBackBufferAttributesReply rep; DbeWindowPrivPtr pDbeWindowPriv; int rc; @@ -778,6 +772,10 @@ ProcDbeGetBackBufferAttributes(ClientPtr client) rep.attributes = None; } + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = 0; + if (client->swapped) { swaps(&rep.sequenceNumber); swapl(&rep.length); diff --git a/xorg-server/dbe/makefile b/xorg-server/dbe/makefile new file mode 100644 index 000000000..70fb81430 --- /dev/null +++ b/xorg-server/dbe/makefile @@ -0,0 +1,4 @@ +CSRCS=dbe.c midbe.c
+
+LIBRARY=libdbe
+
|