mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
dix: dix_priv.h: cast size value on WriteToClient() calls
We're trying to use size_t for sizes whereever possible, but WriteToClient() is part of ABI, so we can't fix it's parameter types - need to explicitly cast, in order to silence the compiler warnings. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
1271a098e6
commit
32f6ac7dbf
@@ -768,7 +768,7 @@ static inline int __write_reply_hdr_and_rpcbuf(
|
||||
swapl(&reply->length);
|
||||
}
|
||||
|
||||
WriteToClient(pClient, hdrLen, hdrData);
|
||||
WriteToClient(pClient, (int)hdrLen, hdrData);
|
||||
WriteRpcbufToClient(pClient, rpcbuf);
|
||||
|
||||
return Success;
|
||||
@@ -787,7 +787,7 @@ static inline int __write_reply_hdr_simple(
|
||||
swapl(&reply->length);
|
||||
}
|
||||
|
||||
WriteToClient(pClient, hdrLen, hdrData);
|
||||
WriteToClient(pClient, (int)hdrLen, hdrData);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user