diff options
Diffstat (limited to 'xorg-server/present/present_request.c')
-rw-r--r-- | xorg-server/present/present_request.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/xorg-server/present/present_request.c b/xorg-server/present/present_request.c index 7c53e7262..68076edd7 100644 --- a/xorg-server/present/present_request.c +++ b/xorg-server/present/present_request.c @@ -20,8 +20,8 @@ * OF THIS SOFTWARE. */ -#ifdef HAVE_XORG_CONFIG_H -#include <xorg-config.h> +#ifdef HAVE_DIX_CONFIG_H +#include <dix-config.h> #endif #include "present_priv.h" @@ -31,14 +31,15 @@ static int proc_present_query_version(ClientPtr client) { + xPresentQueryVersionReply rep; REQUEST(xPresentQueryVersionReq); - xPresentQueryVersionReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, - .majorVersion = SERVER_PRESENT_MAJOR_VERSION, - .minorVersion = SERVER_PRESENT_MINOR_VERSION - }; + + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = 0; + rep.majorVersion = SERVER_PRESENT_MAJOR_VERSION; + rep.minorVersion = SERVER_PRESENT_MINOR_VERSION; + REQUEST_SIZE_MATCH(xPresentQueryVersionReq); (void) stuff; @@ -200,15 +201,14 @@ proc_present_select_input (ClientPtr client) static int proc_present_query_capabilities (ClientPtr client) { - REQUEST(xPresentQueryCapabilitiesReq); - xPresentQueryCapabilitiesReply rep = { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, - }; WindowPtr window; RRCrtcPtr crtc = NULL; int r; + xPresentQueryCapabilitiesReply rep; + REQUEST(xPresentQueryCapabilitiesReq); + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = 0; REQUEST_SIZE_MATCH(xPresentQueryCapabilitiesReq); r = dixLookupWindow(&window, stuff->target, client, DixGetAttrAccess); |