diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-08 14:08:34 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-08 14:08:34 +0100 |
commit | 92e2c77a5b5eeabc3252ea90953ab6bd1a8944d1 (patch) | |
tree | f1aed9639259b13f4fd9d5db6414cd914e7c8fa2 /lib/tar/src/read_header.c | |
parent | d8aba88445b3ca51f1e2b45d12688378d69745e9 (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 'lib/tar/src/read_header.c')
-rw-r--r-- | lib/tar/src/read_header.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/tar/src/read_header.c b/lib/tar/src/read_header.c index 1e74841..8d3145b 100644 --- a/lib/tar/src/read_header.c +++ b/lib/tar/src/read_header.c @@ -292,13 +292,6 @@ fail: return -1; } -int skip_padding(istream_t *fp, sqfs_u64 size) -{ - size_t tail = size % 512; - - return tail ? istream_skip(fp, 512 - tail) : 0; -} - int skip_entry(istream_t *fp, sqfs_u64 size) { size_t tail = size % 512; |