From: Richard Jones Date: Tue, 15 Sep 2009 08:23:49 +0000 (+0100) Subject: Fix comparison between signed and unsigned (for RHEL 5). X-Git-Tag: 1.0.69^0 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=bf2f52e9c6f787d3b040083909aa9c11c54873f6;p=libguestfs.git Fix comparison between signed and unsigned (for RHEL 5). --- 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) {