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

Allan McRae allan at archlinux.org
Mon Sep 26 19:19:23 EDT 2011


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 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