]> git.ipfire.org Git - thirdparty/chrony.git/commit
rewrite some assertions for better readability
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Mar 2025 11:28:46 +0000 (12:28 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 Mar 2025 14:22:36 +0000 (15:22 +0100)
commit711c7c0c8ae3a8055d2efa173502e15a50f00deb
treed0efabc727a6c2b0da5cb35ef04b14d0323c93a2
parent454ce62672dea4bd15da5f53ad02dd95b129e5f4
rewrite some assertions for better readability

Some assertions are written as "if (x) assert(0)" to avoid having
the text of a long argument compiled in the binary. Rewrite them
to use a new BRIEF_ASSERT macro to make the condition easier to read in
its non-negated form and make it easier to turn it back to the full-text
assert if needed.
16 files changed:
client.c
cmdmon.c
conf.c
local.c
ntp_core.c
ntp_sources.c
nts_ke_server.c
nts_ke_session.c
nts_ntp_auth.c
nts_ntp_server.c
privops.c
quantiles.c
siv_nettle.c
socket.c
sources.c
util.h