lib: remove xhp argument from xbps_plist_{array,dictionary}_from_file

This commit is contained in:
Duncan Overbruck
2022-12-24 13:58:36 +01:00
parent de484e9369
commit 9efba6749f
7 changed files with 17 additions and 19 deletions

View File

@@ -612,7 +612,7 @@ main(int argc, char **argv)
if (conf_file == NULL)
conf_file = _DGRAPH_CFFILE;
confd = xbps_plist_dictionary_from_file(&xh, conf_file);
confd = xbps_plist_dictionary_from_file(conf_file);
if (confd == NULL) {
if (errno != ENOENT)
die("cannot read conf file `%s'", conf_file);

View File

@@ -95,7 +95,7 @@ check_pkg_integrity(struct xbps_handle *xhp,
buf = xbps_xasprintf("%s/.%s-files.plist",
xhp->metadir, pkgname);
assert(buf);
filesd = xbps_plist_dictionary_from_file(xhp, buf);
filesd = xbps_plist_dictionary_from_file(buf);
if (filesd == NULL) {
fprintf(stderr, "%s: cannot read %s, ignoring...\n",
pkgname, buf);