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
This commit is contained in:
parent
c0959e503f
commit
dd2baebdec
@ -323,7 +323,7 @@ xbps_remove_string_from_array(prop_array_t array, const char *str)
|
|||||||
{
|
{
|
||||||
prop_object_t obj;
|
prop_object_t obj;
|
||||||
prop_object_iterator_t iter;
|
prop_object_iterator_t iter;
|
||||||
size_t idx = 0;
|
unsigned int idx = 0;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
assert(array != NULL);
|
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_t obj;
|
||||||
prop_object_iterator_t iter;
|
prop_object_iterator_t iter;
|
||||||
const char *curpkgname;
|
const char *curpkgname;
|
||||||
size_t i = 0;
|
unsigned int i = 0;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
assert(dict != NULL);
|
assert(dict != NULL);
|
||||||
|
@ -85,7 +85,7 @@ remove_pkg_from_reqby(prop_object_t obj, void *arg, bool *loop_done)
|
|||||||
prop_object_iterator_t iter;
|
prop_object_iterator_t iter;
|
||||||
const char *pkgname = arg;
|
const char *pkgname = arg;
|
||||||
char *curpkgname;
|
char *curpkgname;
|
||||||
size_t idx = 0;
|
unsigned int idx = 0;
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
(void)loop_done;
|
(void)loop_done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user