mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
dix: request_priv.h: fix X_REQUEST_REST_COUNT_CARD16()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f00b684cb1
commit
01502a4ddd
@@ -148,8 +148,8 @@ static inline int __write_reply_hdr_simple(
|
|||||||
/* swap CARD16 rest of request (after the struct) - check fixed count */
|
/* swap CARD16 rest of request (after the struct) - check fixed count */
|
||||||
#define X_REQUEST_REST_COUNT_CARD16(count) \
|
#define X_REQUEST_REST_COUNT_CARD16(count) \
|
||||||
REQUEST_FIXED_SIZE(*stuff, count * sizeof(CARD16)); \
|
REQUEST_FIXED_SIZE(*stuff, count * sizeof(CARD16)); \
|
||||||
CARD32 *request_rest = (CARD16 *) (&stuff[1]); \
|
CARD16 *request_rest = (CARD16 *) (&stuff[1]); \
|
||||||
do { if (client->swapped) SwapShorts(request_rest, count); } while (0)
|
do { if (client->swapped) SwapShorts((signed short*)request_rest, count); } while (0)
|
||||||
|
|
||||||
/* swap CARD32 rest of request (after the struct) - check fixed count */
|
/* swap CARD32 rest of request (after the struct) - check fixed count */
|
||||||
#define X_REQUEST_REST_COUNT_CARD32(count) \
|
#define X_REQUEST_REST_COUNT_CARD32(count) \
|
||||||
|
|||||||
Reference in New Issue
Block a user