mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
fgets returns either a valid pointer with the same value as its first argument or NULL on error or EOF. GCC 12.2.0 -Wextra warns against relational comparison of the return value: leapdb.c:127:38: warning: ordered comparison of pointer with integer zero [-Wextra] For clarity, and because the C standard doesn't mandate that valid pointers have to compare greater than the null pointer constant, replace the relational expression with an equality expression
6.8 KiB
6.8 KiB