[Libguestfs] [PATCH 40/46] Fix to src/proto.c in libguestfs so it will compile with portablexdr under mingw.

Richard W.M. Jones rjones at redhat.com
Sat Aug 24 12:37:16 UTC 2013


From: Or Goshen <oberonc at gmail.com>

(cherry picked from commit 18b40a88925df737d3552fa646d35a185feb6c62)
(cherry picked from commit 5fe8a679eef1339f25c5190bfc15709332c7f116)
---
 src/proto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/proto.c b/src/proto.c
index f3b27b6..93f5517 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -785,7 +785,7 @@ guestfs___send (guestfs_h *g, int proc_nr,
 {
   struct guestfs_message_header hdr;
   XDR xdr;
-  u_int32_t len;
+  uint32_t len;
   int serial = g->msg_next_serial++;
   int r;
   CLEANUP_FREE char *msg_out = NULL;
@@ -962,7 +962,7 @@ send_file_complete (guestfs_h *g)
 static int
 send_file_chunk (guestfs_h *g, int cancel, const char *buf, size_t buflen)
 {
-  u_int32_t len;
+  uint32_t len;
   int r;
   guestfs_chunk chunk;
   XDR xdr;
-- 
1.8.3.1




More information about the Libguestfs mailing list