]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: simplify cp/install/ln/mv pacification
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
commitf21ccfb02c7233d2d36d49a6198be1c1f1fe938a
tree478ed077abee89805f7db34787643b8000f51fdf
parentb50b63e06cef72e9f1f30c6a2947942567297bf6
cp: simplify cp/install/ln/mv pacification

* src/copy.c (dest_info_free, src_info_free) [lint]:
Remove.  All uses removed.
(copy_internal): Pacify only Clang and Coverity; GCC doesn’t need it.
* src/cp-hash.c (forget_all) [lint]: Remove.  All uses removed.
* src/cp.c, src/install.c, src/ln.c, src/mv.c (main):
Use main_exit, not return.
src/copy.c
src/cp-hash.c
src/cp-hash.h
src/cp.c
src/install.c
src/ln.c
src/mv.c