]> git.ipfire.org Git - thirdparty/tar.git/commit
Prefer other types to int in misc.c
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 02:09:44 +0000 (19:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
commitf96aff3ce92fc1afd1e4ce742dd0ebf729eb293e
tree4804ae04b17e798f265527f9fe6208a79cd3bb18
parent53a369109216ea44c931c1a136146dc45954bfc7
Prefer other types to int in misc.c

* src/misc.c (quote_copy_string, tar_savedir):
Use bool for booleans.  All uses changed.
(quote_copy_string): Use char for chars.
(unquote_string): Return void, since nobody uses return value.
(unquote_string): Check for overflow in escapes like \777.
(wdcache): Now array of idx_t not int, since in theory it
might contain values greater than INT_MAX.  All uses changed.
src/common.h
src/incremen.c
src/misc.c
src/update.c