libxbps: require a pointer to xbps_handle in functions that need it.
This removes 2 global vars from lib/initend.c and easier to know what functions require access to xbps_handle.
This commit is contained in:
@ -174,11 +174,11 @@ xbps_file_hash_dictionary(prop_dictionary_t d,
|
||||
}
|
||||
|
||||
int
|
||||
xbps_file_hash_check_dictionary(prop_dictionary_t d,
|
||||
xbps_file_hash_check_dictionary(struct xbps_handle *xhp,
|
||||
prop_dictionary_t d,
|
||||
const char *key,
|
||||
const char *file)
|
||||
{
|
||||
struct xbps_handle *xhp = xbps_handle_get();
|
||||
const char *sha256d = NULL;
|
||||
char *buf;
|
||||
int rv;
|
||||
|
Reference in New Issue
Block a user