]> xenbits.xensource.com Git - libvirt.git/commitdiff
Change signature of remoteSendStreamData() to fix compile warning
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 30 Sep 2009 10:37:10 +0000 (12:37 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 30 Sep 2009 10:37:10 +0000 (12:37 +0200)
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()

daemon/dispatch.c
daemon/dispatch.h

index e9fe260168d9bb1aee8037527a6dbea4f4a9d985..ae4f60df4a2e8a9a40f6d60cc8e46f4c9530fdbb 100644 (file)
@@ -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;
index a5bf4741d05223fd417bd8c695dbfc0fdee8abe3..ed9d89d20b6992e626272bd9858ede468acb7701 100644 (file)
@@ -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__ */