From 62d5a1e56f4022002c5c55e02d7d29e1e68bc236 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 20 Aug 2021 17:58:49 +0200 Subject: tar,smemcap: commonalyze checksumming code for tar header function old new delta chksum_and_xwrite_tar_header - 99 +99 writeheader 280 199 -81 chksum_and_xwrite 102 - -102 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/1 up/down: 99/-183) Total: -84 bytes Signed-off-by: Denys Vlasenko --- include/bb_archive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/bb_archive.h b/include/bb_archive.h index 9b1db5b3e..dc5e55f0a 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h @@ -167,6 +167,7 @@ typedef struct tar_header_t { /* byte offset */ struct BUG_tar_header { char c[sizeof(tar_header_t) == TAR_BLOCK_SIZE ? 1 : -1]; }; +void chksum_and_xwrite_tar_header(int fd, struct tar_header_t *hp) FAST_FUNC; extern const char cpio_TRAILER[]; -- cgit v1.2.3