From bf2f52e9c6f787d3b040083909aa9c11c54873f6 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 15 Sep 2009 09:23:49 +0100 Subject: [PATCH] Fix comparison between signed and unsigned (for RHEL 5). --- src/guestfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guestfs.c b/src/guestfs.c index 659ace3..17974fd 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1799,7 +1799,7 @@ recv_from_daemon (guestfs_h *g, uint32_t *size_rtn, void **buf_rtn) */ ssize_t nr = -4; - while (nr < *size_rtn) { + while (nr < (ssize_t) *size_rtn) { rset2 = rset; int r = select (max_fd+1, &rset2, NULL, NULL, NULL); if (r == -1) { -- 1.8.3.1