]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: make sure errors array is not empty [-Werror=type-limits]
authorKarel Zak <kzak@redhat.com>
Wed, 21 Jan 2026 10:56:54 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Jan 2026 10:56:54 +0000 (11:56 +0100)
commitc4fcb11334652f00e24ee16c2d0cf848caa4f592
treeaccbe837c7c387a27f623aca34f12c8eda0511d6
parentc25b941da9606ef60308d8d882358907c788988a
lsfd: make sure errors array is not empty [-Werror=type-limits]

lsfd-cmd/error.c: In function ‘get_errno_name’:
lsfd-cmd/error.c:49:30: error: comparison of unsigned expression in ‘< 0’ is always false [-Werror=type-limits]
   49 |         for (size_t i = 0; i < ARRAY_SIZE(errnos); i ++) {
      |                              ^

Signed-off-by: Karel Zak <kzak@redhat.com>
lsfd-cmd/error.c