]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix some uses of int in list.c
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 01:45:00 +0000 (18:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
commit91ad4ea343798fd27aefb7a44fc8ddff9ef8f761
tree6a2890db47d37025a0fab6a89669013b86e56773
parent7eb4dbaff1aa5335da3b6e0c06aa1a0ea47826e0
Fix some uses of int in list.c

* src/list.c (decode_xform): Last arg is now int, not a void *
pointer to that int.  All uses changed.
(enforce_one_top_level): Don’t assume string length fits in int.
(transform_stat_info): Prefer char to int for typeflag.
All uses changed.
(decode_header): Prefer bool for booleans.  All uses changed.
(ugswidth): Now idx_t, not int, since in theory it could
exceed INT_MAX.  All uses changed.
(simple_print_header, print_for_mkdir): Don’t assume printf length
fits in int, and similarly for length of user or group name.
* src/transform.c (transform_name_fp): Last arg is now int, not void *.
All uses changed.
src/common.h
src/compare.c
src/list.c
src/transform.c
src/update.c