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:
Enrico Weigelt, metux IT consult
2025-09-15 17:09:01 +02:00
committed by Enrico Weigelt
parent 1271a098e6
commit 32f6ac7dbf

View File

@@ -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;
}