lib: remove xhp argument from xbps_plist_{array,dictionary}_from_file
This commit is contained in:
@ -934,27 +934,27 @@ xbps_string_equals_cstring(xbps_string_t s, const char *ss)
|
||||
|
||||
/* xbps specific helpers */
|
||||
xbps_array_t
|
||||
xbps_plist_array_from_file(struct xbps_handle *xhp, const char *f)
|
||||
xbps_plist_array_from_file(const char *path)
|
||||
{
|
||||
xbps_array_t a;
|
||||
|
||||
a = xbps_array_internalize_from_zfile(f);
|
||||
a = xbps_array_internalize_from_zfile(path);
|
||||
if (xbps_object_type(a) != XBPS_TYPE_ARRAY) {
|
||||
xbps_dbg_printf(
|
||||
"xbps: failed to internalize array from %s\n", f);
|
||||
"xbps: failed to internalize array from %s\n", path);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
xbps_dictionary_t
|
||||
xbps_plist_dictionary_from_file(struct xbps_handle *xhp, const char *f)
|
||||
xbps_plist_dictionary_from_file(const char *path)
|
||||
{
|
||||
xbps_dictionary_t d;
|
||||
|
||||
d = xbps_dictionary_internalize_from_zfile(f);
|
||||
d = xbps_dictionary_internalize_from_zfile(path);
|
||||
if (xbps_object_type(d) != XBPS_TYPE_DICTIONARY) {
|
||||
xbps_dbg_printf(
|
||||
"xbps: failed to internalize dict from %s\n", f);
|
||||
"xbps: failed to internalize dict from %s\n", path);
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
Reference in New Issue
Block a user