Skip to content

Commit 32f6ac7

Browse files
committed
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 <[email protected]>
1 parent 1271a09 commit 32f6ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dix/dix_priv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ static inline int __write_reply_hdr_and_rpcbuf(
768768
swapl(&reply->length);
769769
}
770770

771-
WriteToClient(pClient, hdrLen, hdrData);
771+
WriteToClient(pClient, (int)hdrLen, hdrData);
772772
WriteRpcbufToClient(pClient, rpcbuf);
773773

774774
return Success;
@@ -787,7 +787,7 @@ static inline int __write_reply_hdr_simple(
787787
swapl(&reply->length);
788788
}
789789

790-
WriteToClient(pClient, hdrLen, hdrData);
790+
WriteToClient(pClient, (int)hdrLen, hdrData);
791791
return Success;
792792
}
793793

0 commit comments

Comments
 (0)