提交 d710d60c 编写于 作者: M Matthias Bolte

Change signature of remoteSendStreamData() to fix compile warning

The actual type of size_t is architecture dependent. Because the len
parameter is used as unsigned int in remoteSendStreamData(), change its
type to unsigned int.

* daemon/dispatch.[ch]: change size_t to unsigned int for
  remoteSendStreamData()
上级 fe627697
...@@ -589,7 +589,7 @@ int ...@@ -589,7 +589,7 @@ int
remoteSendStreamData(struct qemud_client *client, remoteSendStreamData(struct qemud_client *client,
struct qemud_client_stream *stream, struct qemud_client_stream *stream,
const char *data, const char *data,
size_t len) unsigned int len)
{ {
struct qemud_client_message *msg; struct qemud_client_message *msg;
XDR xdr; XDR xdr;
......
...@@ -75,6 +75,6 @@ int ...@@ -75,6 +75,6 @@ int
remoteSendStreamData(struct qemud_client *client, remoteSendStreamData(struct qemud_client *client,
struct qemud_client_stream *stream, struct qemud_client_stream *stream,
const char *data, const char *data,
size_t len); unsigned int len);
#endif /* __LIBVIRTD_DISPATCH_H__ */ #endif /* __LIBVIRTD_DISPATCH_H__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册