From 07a0aa352d7e30e821c86ecd2f9aaf6a6145e57d Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 1 Aug 2021 11:56:11 +0300 Subject: [PATCH] (tar_find_next_block): rename from tar_get_next_block. Signed-off-by: Andrew Borodin --- src/vfs/tar/tar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c index 465fb8b7b..47a0db651 100644 --- a/src/vfs/tar/tar.c +++ b/src/vfs/tar/tar.c @@ -602,7 +602,7 @@ uintmax_from_header (const char *p, size_t s) /* --------------------------------------------------------------------------------------------- */ static union block * -tar_get_next_block (tar_super_t * archive) +tar_find_next_block (tar_super_t * archive) { int n; @@ -814,7 +814,7 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, size_t * h_s while (TRUE) { - header = tar_get_next_block (arch); + header = tar_find_next_block (arch); if (header == NULL) return HEADER_END_OF_FILE; @@ -864,7 +864,7 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, size_t * h_s for (size = *h_size; size > 0; size -= written) { - data = tar_get_next_block (arch)->buffer; + data = tar_find_next_block (arch)->buffer; if (data == NULL) { MC_PTR_FREE (*longp); @@ -1013,7 +1013,7 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, size_t * h_s if (arch->type == TAR_GNU && header->oldgnu_header.isextended) { - while (tar_get_next_block (arch)->sparse_header.isextended != 0) + while (tar_find_next_block (arch)->sparse_header.isextended != 0) ; if (inode != NULL)