From: Amaury Denoyelle Date: Mon, 11 May 2026 08:27:20 +0000 (+0200) Subject: BUG/MINOR: xprt_qstrm: fix conflicting prototype X-Git-Tag: v3.4-dev12~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e2f0fa178e0c27da95f79aef8ecd2f33261bc90;p=thirdparty%2Fhaproxy.git BUG/MINOR: xprt_qstrm: fix conflicting prototype This patch adds the missing include of xprt_qstrm header into its companion source file. This helped to detect an incoherence in the xprt_qstrm_xfer_rxbuf() prototype which is now fixed. Header files is also updated with mandatory include statements and forward declaration. No backport needed. --- diff --git a/include/haproxy/xprt_qstrm.h b/include/haproxy/xprt_qstrm.h index f8af655b8..96618f635 100644 --- a/include/haproxy/xprt_qstrm.h +++ b/include/haproxy/xprt_qstrm.h @@ -1,9 +1,14 @@ #ifndef _HAPROXY_XPRT_QSTRM_H #define _HAPROXY_XPRT_QSTRM_H +#include + +struct buffer; +struct quic_transport_params; + const struct quic_transport_params *xprt_qstrm_lparams(const void *context); const struct quic_transport_params *xprt_qstrm_rparams(const void *context); -size_t xprt_qstrm_xfer_rxbuf(const void *context, struct buffer *out); +size_t xprt_qstrm_xfer_rxbuf(void *context, struct buffer *out); #endif /* _HAPROXY_XPRT_QSTRM_H */ diff --git a/src/xprt_qstrm.c b/src/xprt_qstrm.c index e37de2322..829ddf393 100644 --- a/src/xprt_qstrm.c +++ b/src/xprt_qstrm.c @@ -1,3 +1,5 @@ +#include + #include #include #include