libxbps: fixed all warnings found by clang.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428213056-p1b7bh0llq8393r0
This commit is contained in:
Juan RP
2010-04-28 23:30:56 +02:00
parent 7976ac3707
commit 28f997bdf7
8 changed files with 15 additions and 33 deletions

View File

@@ -34,18 +34,14 @@
int HIDDEN
xbps_remove_obsoletes(prop_dictionary_t oldd, prop_dictionary_t newd)
{
prop_object_iterator_t iter, iter2;
prop_object_t obj, obj2;
prop_string_t oldstr, newstr;
prop_object_iterator_t iter, iter2 = NULL;
prop_object_t obj, obj2 = NULL;
prop_string_t oldstr = NULL, newstr = NULL;
const char *array_str = "files";
char *buf = NULL;
int rv = 0;
bool found, dolinks = false;
iter = iter2 = NULL;
obj = obj2 = NULL;
oldstr = newstr = NULL;
again:
iter = xbps_get_array_iter_from_dict(oldd, array_str);
if (iter == NULL)
@@ -110,7 +106,7 @@ again:
array_str = "links";
prop_object_iterator_release(iter2);
prop_object_iterator_release(iter);
iter = iter2 = NULL;
iter2 = NULL;
goto again;
}