From: Matthias Bolte Date: Wed, 30 Sep 2009 10:37:10 +0000 (+0200) Subject: Change signature of remoteSendStreamData() to fix compile warning X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d710d60c31327f1446a33b1eee8be0fb82d6211b;p=libvirt.git 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() --- diff --git a/daemon/dispatch.c b/daemon/dispatch.c index e9fe260168..ae4f60df4a 100644 --- a/daemon/dispatch.c +++ b/daemon/dispatch.c @@ -589,7 +589,7 @@ int remoteSendStreamData(struct qemud_client *client, struct qemud_client_stream *stream, const char *data, - size_t len) + unsigned int len) { struct qemud_client_message *msg; XDR xdr; diff --git a/daemon/dispatch.h b/daemon/dispatch.h index a5bf4741d0..ed9d89d20b 100644 --- a/daemon/dispatch.h +++ b/daemon/dispatch.h @@ -75,6 +75,6 @@ int remoteSendStreamData(struct qemud_client *client, struct qemud_client_stream *stream, const char *data, - size_t len); + unsigned int len); #endif /* __LIBVIRTD_DISPATCH_H__ */