diff options
author | Denys Vlasenko | 2021-08-20 17:58:49 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-08-20 17:58:49 +0200 |
commit | 62d5a1e56f4022002c5c55e02d7d29e1e68bc236 (patch) | |
tree | 2712cc1241e294c23f77528d83448853e20f3ccc /include/bb_archive.h | |
parent | 38e9c8c95b919e949b1cdd16f05b648a75983f57 (diff) | |
download | busybox-62d5a1e56f4022002c5c55e02d7d29e1e68bc236.zip busybox-62d5a1e56f4022002c5c55e02d7d29e1e68bc236.tar.gz |
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 <vda.linux@googlemail.com>
Diffstat (limited to 'include/bb_archive.h')
-rw-r--r-- | include/bb_archive.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 9b1db5b..dc5e55f 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[]; |