From 7e2f0fa178e0c27da95f79aef8ecd2f33261bc90 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 11 May 2026 10:27:20 +0200 Subject: [PATCH] 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. --- include/haproxy/xprt_qstrm.h | 7 ++++++- src/xprt_qstrm.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) 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