[Libguestfs] [PATCH libguestfs 5/8] suppress signed/unsigned-comparison warnings
Richard W.M. Jones
rjones at redhat.com
Tue Aug 18 13:54:31 UTC 2009
On Tue, Aug 18, 2009 at 03:49:42PM +0200, Jim Meyering wrote:
> From: Jim Meyering <meyering at redhat.com>
>
> * src/guestfs.c [struct guestfs_h] (msg_in_size, msg_in_allocated):
> (msg_out_size, msg_out_allocated): Change type from int to unsigned int.
> ---
> src/guestfs.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/guestfs.c b/src/guestfs.c
> index 6eae692..0c007d2 100644
> --- a/src/guestfs.c
> +++ b/src/guestfs.c
> @@ -202,9 +202,9 @@ struct guestfs_h
>
> /* Messages sent and received from the daemon. */
> char *msg_in;
> - int msg_in_size, msg_in_allocated;
> + unsigned int msg_in_size, msg_in_allocated;
> char *msg_out;
> - int msg_out_size, msg_out_pos;
> + unsigned int msg_out_size, msg_out_pos;
>
> int msg_next_serial;
> };
> --
> 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
More information about the Libguestfs
mailing list