xbps-bin/check.c: remove dead code, fix warnings found by clang.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20100428211107-nvoflpkfkz37y3us
This commit is contained in:
parent
db685f280d
commit
b04a0230cd
@ -99,7 +99,7 @@ out:
|
|||||||
int
|
int
|
||||||
xbps_check_pkg_integrity(const char *pkgname)
|
xbps_check_pkg_integrity(const char *pkgname)
|
||||||
{
|
{
|
||||||
prop_dictionary_t pkgd, propsd, filesd;
|
prop_dictionary_t pkgd, propsd = NULL, filesd = NULL;
|
||||||
prop_array_t array;
|
prop_array_t array;
|
||||||
prop_object_t obj;
|
prop_object_t obj;
|
||||||
prop_object_iterator_t iter;
|
prop_object_iterator_t iter;
|
||||||
@ -178,14 +178,6 @@ xbps_check_pkg_integrity(const char *pkgname)
|
|||||||
XBPS_PKGFILES);
|
XBPS_PKGFILES);
|
||||||
rv = EINVAL;
|
rv = EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
} else if (((array = prop_dictionary_get(filesd, "files")) == NULL) ||
|
|
||||||
((array = prop_dictionary_get(filesd, "links")) == NULL) ||
|
|
||||||
((array = prop_dictionary_get(filesd, "dirs")) == NULL)) {
|
|
||||||
fprintf(stderr,
|
|
||||||
"E: %s: incomplete %s metadata file.\n", pkgname,
|
|
||||||
XBPS_PKGFILES);
|
|
||||||
rv = EINVAL;
|
|
||||||
goto out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user