From 92e2c77a5b5eeabc3252ea90953ab6bd1a8944d1 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 8 Feb 2023 14:08:34 +0100 Subject: libtar: remove need for skip_padding function In the istream implementation, automatically skip the padding when we reach end-of-file. Also skip file AND padding when we destroy the object. Replace the remaining instances with a simple istream_skip instead and remove the wrapper from libtar. Signed-off-by: David Oberhollenzer --- include/tar/tar.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/tar') diff --git a/include/tar/tar.h b/include/tar/tar.h index e1bc72a..7c4faa7 100644 --- a/include/tar/tar.h +++ b/include/tar/tar.h @@ -65,9 +65,6 @@ int write_tar_header(ostream_t *fp, const struct stat *sb, const char *name, int write_hard_link(ostream_t *fp, const struct stat *sb, const char *name, const char *target, unsigned int counter); -/* calcuate and skip the zero padding */ -int skip_padding(istream_t *fp, sqfs_u64 size); - /* round up to block size and skip the entire entry */ int skip_entry(istream_t *fp, sqfs_u64 size); -- cgit v1.2.3