mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
libarchive-util: drop 'sym_' prefix from cleanup functions
This commit is contained in:
@@ -1455,7 +1455,7 @@ static int archive_item(
|
||||
|
||||
log_debug("Archiving %s\n", path);
|
||||
|
||||
_cleanup_(sym_archive_entry_freep) struct archive_entry *entry = NULL;
|
||||
_cleanup_(archive_entry_freep) struct archive_entry *entry = NULL;
|
||||
entry = sym_archive_entry_new();
|
||||
if (!entry)
|
||||
return log_oom();
|
||||
@@ -1744,7 +1744,7 @@ static int action_list_or_mtree_or_copy_or_make_archive(DissectedImage *m, LoopD
|
||||
if (dfd < 0)
|
||||
return log_error_errno(errno, "Failed to open mount directory: %m");
|
||||
|
||||
_cleanup_(sym_archive_write_freep) struct archive *a = sym_archive_write_new();
|
||||
_cleanup_(archive_write_freep) struct archive *a = sym_archive_write_new();
|
||||
if (!a)
|
||||
return log_oom();
|
||||
|
||||
|
||||
@@ -77,9 +77,9 @@ static inline int sym_archive_entry_hardlink_is_set(struct archive_entry *e) {
|
||||
|
||||
int dlopen_libarchive(void);
|
||||
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct archive_entry*, sym_archive_entry_free, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct archive*, sym_archive_write_free, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(struct archive*, sym_archive_read_free, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(struct archive_entry*, sym_archive_entry_free, archive_entry_freep, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(struct archive*, sym_archive_write_free, archive_write_freep, NULL);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(struct archive*, sym_archive_read_free, archive_read_freep, NULL);
|
||||
|
||||
#else
|
||||
|
||||
|
||||
@@ -392,7 +392,7 @@ int tar_x(int input_fd, int tree_fd, TarFlags flags) {
|
||||
assert(input_fd >= 0);
|
||||
assert(tree_fd >= 0);
|
||||
|
||||
_cleanup_(sym_archive_read_freep) struct archive *a = NULL;
|
||||
_cleanup_(archive_read_freep) struct archive *a = NULL;
|
||||
a = sym_archive_read_new();
|
||||
if (!a)
|
||||
return log_oom();
|
||||
|
||||
Reference in New Issue
Block a user