aboutsummaryrefslogtreecommitdiff
path: root/include/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-04 16:30:48 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-02-04 16:43:40 +0100
commit89b367941e12b1163afa517eeddca1b5ecd2a054 (patch)
tree932f6566a0194d0dfe978b378a053e5725ef9ca7 /include/tar
parent72c8155d9fc0eaeac72c053f46ebb7b231d4596a (diff)
libtar: some minor cleanups
- Use is_memory_zero from libutil - Move checksum update function to tar writer code - Move checksum verify function to tar reader code - Only export the function to compute the checksum Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/tar')
-rw-r--r--include/tar/format.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/tar/format.h b/include/tar/format.h
index 53a4665..c3e372d 100644
--- a/include/tar/format.h
+++ b/include/tar/format.h
@@ -94,9 +94,7 @@ int read_octal(const char *str, int digits, sqfs_u64 *out);
int read_number(const char *str, int digits, sqfs_u64 *out);
-void update_checksum(tar_header_t *hdr);
-
-bool is_checksum_valid(const tar_header_t *hdr);
+unsigned int tar_compute_checksum(const tar_header_t *hdr);
#ifdef __cplusplus
}