aboutsummaryrefslogtreecommitdiff
path: root/archival/chksum_and_xwrite_tar_header.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tar,smemcap: silence compiler warningRon Yorston2021-08-221-1/+1
| | | | | | | | | gcc 11.2.1 complains that the tar header checksum might overflow the checksum field. It won't and using an unsigned int for the calculation seems to convince the compiler too. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar,smemcap: commonalyze checksumming code for tar headerDenys Vlasenko2021-08-201-0/+35
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>