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

@ -314,7 +314,7 @@ xbps_repository_update_pkg(const char *pkgname, prop_dictionary_t instpkg)
if (pkgrd == NULL) {
if (errno && errno != ENOENT) {
rv = errno;
break;
goto out;
}
DPRINTF(("Package %s not found in repo %s.\n",
pkgname, rpool->rp_uri));
@ -326,12 +326,12 @@ xbps_repository_update_pkg(const char *pkgname, prop_dictionary_t instpkg)
if (!prop_dictionary_get_cstring_nocopy(instpkg,
"version", &instver)) {
rv = errno;
break;
goto out;
}
if (!prop_dictionary_get_cstring_nocopy(pkgrd,
"version", &repover)) {
rv = errno;
break;
goto out;
}
if (xbps_cmpver(repover, instver) > 0) {
DPRINTF(("Found %s-%s in repo %s.\n",