[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] minor fix's



Hi All,

Just minor fix's.

Regards,
Pritesh
diff --git a/daemon/dispatch.c b/daemon/dispatch.c
index e9fe260..011d523 100644
--- a/daemon/dispatch.c
+++ b/daemon/dispatch.c
@@ -594,7 +594,7 @@ remoteSendStreamData(struct qemud_client *client,
     struct qemud_client_message *msg;
     XDR xdr;
 
-    DEBUG("client=%p stream=%p data=%p len=%d", client, stream, data, len);
+    DEBUG("client=%p stream=%p data=%p len=%zd", client, stream, data, len);
 
     if (VIR_ALLOC(msg) < 0) {
         return -1;
@@ -640,7 +640,7 @@ remoteSendStreamData(struct qemud_client *client,
         if (xdr_setpos (&xdr, 0) == 0)
             goto xdr_error;
 
-        if (!xdr_u_int (&xdr, &len))
+        if (!xdr_u_int (&xdr, (unsigned *)&len))
             goto xdr_error;
 
         xdr_destroy (&xdr);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]