aboutsummaryrefslogtreecommitdiff
path: root/include/tar/tar.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-08 14:08:34 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-08 14:08:34 +0100
commit92e2c77a5b5eeabc3252ea90953ab6bd1a8944d1 (patch)
treef1aed9639259b13f4fd9d5db6414cd914e7c8fa2 /include/tar/tar.h
parentd8aba88445b3ca51f1e2b45d12688378d69745e9 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/tar/tar.h')
-rw-r--r--include/tar/tar.h3
1 files changed, 0 insertions, 3 deletions
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);