]> git.ipfire.org Git - thirdparty/tar.git/commit
Prefer function to COPY_STRING macro
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Aug 2024 16:44:25 +0000 (09:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2024 16:57:13 +0000 (09:57 -0700)
commitf25dd56e83dfb5b442a4bc8601a29c43631206ca
treedf369f549820184c90d438333e7cbcfec3b2b641
parentf1e4947992aa1b011a9b97c1e5c653eb6c1c5474
Prefer function to COPY_STRING macro

* src/sparse.c (struct block_ptr):
New type, to allow a functional style.
(dump_str_nl, floorlog10): New static functions.
(COPY_STRING): Remove.  All uses replaced by dump_str_nl.
(pax_dump_header_1): Use floorlog10 instead of creating a string.
Simplify size calculation.
src/sparse.c