From dd2baebdecde0b98b319ce74eaf0fd2653ac0be0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 10 Oct 2009 16:13:37 +0200 Subject: [PATCH] Fix bug #447944: xbps build failure (gcc 4.4.1) unsigned int and size_t do not match in size in x86_64, so use unsigned int in functions expecting this type. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091010141337-vfoiay5nx8edl0ux --- lib/plist.c | 4 ++-- lib/requiredby.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plist.c b/lib/plist.c index ff5b4b3c..9f2127b2 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -323,7 +323,7 @@ xbps_remove_string_from_array(prop_array_t array, const char *str) { prop_object_t obj; prop_object_iterator_t iter; - size_t idx = 0; + unsigned int idx = 0; bool found = false; assert(array != NULL); @@ -359,7 +359,7 @@ xbps_remove_pkg_from_dict(prop_dictionary_t dict, const char *key, prop_object_t obj; prop_object_iterator_t iter; const char *curpkgname; - size_t i = 0; + unsigned int i = 0; bool found = false; assert(dict != NULL); diff --git a/lib/requiredby.c b/lib/requiredby.c index 6e9acc3c..c674e38e 100644 --- a/lib/requiredby.c +++ b/lib/requiredby.c @@ -85,7 +85,7 @@ remove_pkg_from_reqby(prop_object_t obj, void *arg, bool *loop_done) prop_object_iterator_t iter; const char *pkgname = arg; char *curpkgname; - size_t idx = 0; + unsigned int idx = 0; bool found = false; (void)loop_done;