Fix comparison between signed and unsigned (for RHEL 5). 1.0.69
authorRichard Jones <rjones@centos5x32.home.annexia.org>
Tue, 15 Sep 2009 08:23:49 +0000 (09:23 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Tue, 15 Sep 2009 08:25:11 +0000 (09:25 +0100)
src/guestfs.c

index 659ace3..17974fd 100644 (file)
@@ -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) {