]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: omit cast from gobble_file
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Oct 2024 18:22:03 +0000 (11:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2024 06:03:04 +0000 (23:03 -0700)
commit8fbb1076d5bdf84f84da391a0e3377ffe014de5a
tree62c1c17b888d3e8c3ab27c1097bc8f0cd7c1c02c
parenta89896f8e7be81733f2edc3f830f72183a272461
ls: omit cast from gobble_file

* src/ls.c (gobble_file): Minor refactoring.  Last arg is now null
pointer, not "", for no directory.  All callers changed.
Avoid need for cast from char const * to char *.
src/ls.c