aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/record
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/record')
-rw-r--r--xorg-server/record/makefile4
-rw-r--r--xorg-server/record/record.c29
2 files changed, 18 insertions, 15 deletions
diff --git a/xorg-server/record/makefile b/xorg-server/record/makefile
new file mode 100644
index 000000000..1cef2de18
--- /dev/null
+++ b/xorg-server/record/makefile
@@ -0,0 +1,4 @@
+CSRCS = record.c set.c
+
+LIBRARY=librecord
+
diff --git a/xorg-server/record/record.c b/xorg-server/record/record.c
index 2c70460e8..1b7eb8a43 100644
--- a/xorg-server/record/record.c
+++ b/xorg-server/record/record.c
@@ -1819,15 +1819,14 @@ static int
ProcRecordQueryVersion(ClientPtr client)
{
/* REQUEST(xRecordQueryVersionReq); */
- xRecordQueryVersionReply rep = {
- .type = X_Reply,
- .sequenceNumber = client->sequence,
- .length = 0,
- .majorVersion = SERVER_RECORD_MAJOR_VERSION,
- .minorVersion = SERVER_RECORD_MINOR_VERSION
- };
+ xRecordQueryVersionReply rep;
REQUEST_SIZE_MATCH(xRecordQueryVersionReq);
+ rep.type = X_Reply;
+ rep.sequenceNumber = client->sequence;
+ rep.length = 0;
+ rep.majorVersion = SERVER_RECORD_MAJOR_VERSION;
+ rep.minorVersion = SERVER_RECORD_MINOR_VERSION;
if (client->swapped) {
swaps(&rep.sequenceNumber);
swaps(&rep.majorVersion);
@@ -2235,14 +2234,14 @@ ProcRecordGetContext(ClientPtr client)
/* write the reply header */
- rep = (xRecordGetContextReply) {
- .type = X_Reply,
- .enabled = pContext->pRecordingClient != NULL,
- .sequenceNumber = client->sequence,
- .length = length,
- .elementHeader = pContext->elemHeaders,
- .nClients = nClients
- };
+
+ rep.type = X_Reply;
+ rep.enabled = pContext->pRecordingClient != NULL;
+ rep.sequenceNumber = client->sequence;
+ rep.length = length;
+ rep.elementHeader = pContext->elemHeaders;
+ rep.nClients = nClients;
+
if (client->swapped) {
swaps(&rep.sequenceNumber);
swapl(&rep.length);