[pacman-dev] [PATCH] Aviod comparison between signed and unsigned types

Dan McGee dpmcgee at gmail.com
Mon Sep 26 19:38:37 EDT 2011


On Mon, Sep 26, 2011 at 6:19 PM, Allan McRae <allan at archlinux.org> wrote:
> Signed-off-by: Allan McRae <allan at archlinux.org>
Yay for gcc and non-provability on the lower and upper bounds...ugh. Applied.

> ---
>  src/pacman/pacman.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
> index 40aa444..326664d 100644
> --- a/src/pacman/pacman.c
> +++ b/src/pacman/pacman.c
> @@ -760,7 +760,8 @@ static void cl_to_log(int argc, char* argv[])
>  */
>  int main(int argc, char *argv[])
>  {
> -       int i, ret = 0;
> +       int ret = 0;
> +       size_t i;
>        struct sigaction new_action, old_action;
>        const int signals[] = { SIGHUP, SIGINT, SIGTERM, SIGSEGV };
>  #if defined(HAVE_GETEUID) && !defined(CYGWIN)
> --
> 1.7.6.4
>
>
>


More information about the pacman-dev mailing list