]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sink: merge sink_forward_io_handler() with sink_forward_oc_io_handler()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 23 Jul 2024 17:12:28 +0000 (19:12 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 24 Jul 2024 15:58:41 +0000 (17:58 +0200)
commit10811fdfd6de54b4e04cac426517bc59568c6e1e
treecaf7c1fcc7e5e401a151a4151f8e04ca9c2caee1
parentf2848e6146faa0794a9878610602d03608af07df
MINOR: sink: merge sink_forward_io_handler() with sink_forward_oc_io_handler()

Now that sink_forward_oc_io_handler() and sink_forward_io_handler() were
unified again thanks to the previous commit, let's take a chance to merge
code that is common to both functions in order to ease code maintenance.

Let's add _sink_forward_io_handler() internal function which takes the
applet and a message handler as argument: sink_forward_io_handler() and
sink_forward_oc_io_handler() leverage this internal function by passing
the correct message handler for the desired format.
src/sink.c