]> git.ipfire.org Git - thirdparty/libbsd.git/commit
nlist: Remove condition which is always true
authorGuillem Jover <guillem@hadrons.org>
Sat, 27 Nov 2021 19:26:05 +0000 (20:26 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 27 Nov 2021 22:36:34 +0000 (23:36 +0100)
commit43a827031779650e63a5f787fc1959d146355153
tree5d48fb282b2d40776d6cf160bb4276729d2232b9
parent6a71b24b63ba403e6c49dbed2d31d9a73cab4890
nlist: Remove condition which is always true

The nlist() function is limited to handle ELF binaries of the same class
as size as the size_t of the architecture built.

In addition the SIZE_T_MAX macro is BSD specific, and was falling back
to the wrong constant on most 64-bit non-BSD systems.

Warned-by: gcc
src/nlist.c