[Libguestfs] [PATCH 06/14] daemon: Return value from write syscall is ssize_t, not int.

Richard W.M. Jones rjones at redhat.com
Tue Jan 24 17:02:20 UTC 2012


From: "Richard W.M. Jones" <rjones at redhat.com>

---
 daemon/guestfsd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index a28e090..721c169 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -377,7 +377,7 @@ sysroot_path (const char *path)
 int
 xwrite (int sock, const void *v_buf, size_t len)
 {
-  int r;
+  ssize_t r;
   const char *buf = v_buf;
 
   while (len > 0) {
-- 
1.7.6




More information about the Libguestfs mailing list