mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dri: 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:
@@ -81,11 +81,10 @@ ProcXF86DRIQueryVersion(register ClientPtr client)
|
||||
.patchVersion = SERVER_XF86DRI_PATCH_VERSION
|
||||
};
|
||||
|
||||
if (client->swapped) {
|
||||
swaps(&reply.majorVersion);
|
||||
swaps(&reply.minorVersion);
|
||||
swapl(&reply.patchVersion);
|
||||
}
|
||||
REPLY_FIELD_CARD16(majorVersion);
|
||||
REPLY_FIELD_CARD16(minorVersion);
|
||||
REPLY_FIELD_CARD32(patchVersion);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
||||
@@ -112,7 +111,7 @@ ProcXF86DRIQueryDirectRenderingCapable(register ClientPtr client)
|
||||
if (!client->local || client->swapped)
|
||||
isCapable = 0;
|
||||
|
||||
xXF86DRIQueryDirectRenderingCapableReply reply = {
|
||||
xXF86DRIQueryDirectRenderingCapableReply rep = {
|
||||
.isCapable = isCapable
|
||||
};
|
||||
|
||||
@@ -411,7 +410,7 @@ ProcXF86DRIGetDeviceInfo(register ClientPtr client)
|
||||
X_REQUEST_HEAD_STRUCT(xXF86DRIGetDeviceInfoReq);
|
||||
|
||||
drm_handle_t hFrameBuffer;
|
||||
void *pDevPrivate;
|
||||
void *pDevPrivate = NULL;
|
||||
|
||||
ScreenPtr pScreen = dixGetScreenPtr(stuff->screen);
|
||||
if (!pScreen) {
|
||||
|
||||
Reference in New Issue
Block a user