[Libguestfs] [PATCH libguestfs 7/9] destpaths.c: avoid signed/unsigned-comparison warning

Richard W.M. Jones rjones at redhat.com
Fri Aug 21 13:36:17 UTC 2009


On Fri, Aug 21, 2009 at 03:28:17PM +0200, Jim Meyering wrote:
> From: Jim Meyering <meyering at redhat.com>
> 
> * fish/destpaths.c (free_words): Change param type: s/int/size_t/.
> ---
>  fish/destpaths.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fish/destpaths.c b/fish/destpaths.c
> index 8b6173a..275db49 100644
> --- a/fish/destpaths.c
> +++ b/fish/destpaths.c
> @@ -61,7 +61,7 @@ struct word {
>  };
> 
>  static void
> -free_words (struct word *words, int nr_words)
> +free_words (struct word *words, size_t nr_words)
>  {
>    size_t i;
> 
> -- 
> 1.6.4.378.g88f2f

ACK.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list