damage: use REPLY_*() macros for preparing / sending replies

Use the new macros for preparing and sending replies to clients.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-07-09 11:57:20 +02:00
parent 50036724dd
commit 70fa26fa85

View File

@@ -231,12 +231,12 @@ ProcDamageQueryVersion(ClientPtr client)
else
reply.minorVersion = SERVER_DAMAGE_MINOR_VERSION;
}
pDamageClient->major_version = reply.majorVersion;
pDamageClient->minor_version = reply.minorVersion;
if (client->swapped) {
swapl(&reply.majorVersion);
swapl(&reply.minorVersion);
}
REPLY_FIELD_CARD32(majorVersion);
REPLY_FIELD_CARD32(minorVersion);
return X_SEND_REPLY_SIMPLE(client, reply);
}