]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: init: encapsulate CHECK_CONDITION logic in a func
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 26 Jun 2024 16:39:45 +0000 (18:39 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 27 Jun 2024 14:01:01 +0000 (16:01 +0200)
commit6f613faa717e4a57cf8c7294137a9806fab521ab
tree91c1b655f9ef49bd9b71af4f9359b8ed2853e7b4
parent10de58fbfbf66db257eeda63df6b4bd892939036
REORG: init: encapsulate CHECK_CONDITION logic in a func

As MODE_CHECK_CONDITION logic terminates the process anyway, no matter if
the test for the provided condition was successfull or not, let's
encapsulate it in a separate function. This makes the code of init() more
readable.
src/haproxy.c