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

@@ -83,7 +83,7 @@ remove_pkg_metadata(const char *pkgname)
return -1;
}
if ((rv = unlink(path)) == -1) {
if (unlink(path) == -1) {
if (flags & XBPS_FLAG_VERBOSE)
printf("WARNING: can't remove %s (%s)\n",
pkgname, strerror(errno));