lib: drop libarchive compat macros and use non deprecated functions

This commit is contained in:
Duncan Overbruck
2021-06-25 18:04:15 +02:00
parent fcbd7ef042
commit 2dc22401d5
5 changed files with 13 additions and 47 deletions

View File

@ -732,8 +732,8 @@ collect_binpkg_files(struct xbps_handle *xhp, xbps_dictionary_t pkg_repod,
out:
if (pkg_fd != -1)
close(pkg_fd);
if (ar)
archive_read_finish(ar);
if (ar != NULL)
archive_read_free(ar);
free(bpkg);
return rv;
}