ls: check FILETYPE_INDICATORS cardinality
commita89896f8e7be81733f2edc3f830f72183a272461
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Oct 2024 00:12:31 +0000 (1 17:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2024 06:03:04 +0000 (2 23:03 -0700)
treeae8a2dc287e121e7b5ba7a481c00af978c9e8b99
parent75b34c77e43a4d462ec8b0d4649489a572ca0727
ls: check FILETYPE_INDICATORS cardinality

* src/ls.c (filetype_cardinality): New constant.
(filetype_letter): Omit unnecessary trailing NUL.
(FILETYPE_INDICATORS): Remove, moving definiens to ...
(get_color_indicator): ... here, and check its cardinality too.
src/ls.c