mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-07 08:34:01 +00:00
Xext: xvmc: use REQUEST_HEAD_STRUCT and REQUEST_FIELD_* macros
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -110,10 +110,8 @@ ProcXvMCQueryVersion(ClientPtr client)
|
||||
.minor = SERVER_XVMC_MINOR_VERSION
|
||||
};
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&reply.major);
|
||||
swapl(&reply.minor);
|
||||
}
|
||||
REPLY_FIELD_CARD32(major);
|
||||
REPLY_FIELD_CARD32(minor);
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user