On Tue, Aug 18, 2009 at 03:49:40PM +0200, Jim Meyering wrote:
From: Jim Meyering <meyering(a)redhat.com>
* src/generator.ml (check_reply_header): Emit parameter declarations
that are unsigned, so as to avoid signed/unsigned-compare warnings.
---
src/generator.ml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/generator.ml b/src/generator.ml
index cc97dd5..ddc9ab9 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -4532,7 +4532,7 @@ and generate_client_actions () =
static int
check_reply_header (guestfs_h *g,
const struct guestfs_message_header *hdr,
- int proc_nr, int serial)
+ unsigned int proc_nr, unsigned int serial)
{
if (hdr->prog != GUESTFS_PROGRAM) {
error (g, \"wrong program (%%d/%%d)\", hdr->prog, GUESTFS_PROGRAM);
--
1.6.4.378.g88f2f
ACK.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://et.redhat.com/~rjones/libguestfs/
See what it can do:
http://et.redhat.com/~rjones/libguestfs/recipes.html