From: Amaury Denoyelle Date: Wed, 2 Dec 2026 16:09:37 +0000 (+0100) Subject: CLEANUP: h3: adjust diverging prototype X-Git-Url: https://git.kaiwu.me/web/http/static/%7B@url%7D?a=commitdiff_plain;h=0522fa22f1e12ae1602f47df0047a7adb590ba99;p=haproxy.git CLEANUP: h3: adjust diverging prototype Align h3_inc_err_cnt() prototype with its definition. To ensure future similar issues are caught, include the header in its corresponding source file. This may be backported up to 2.6. --- diff --git a/include/haproxy/h3_stats.h b/include/haproxy/h3_stats.h index ed7c5e796..c1c79903c 100644 --- a/include/haproxy/h3_stats.h +++ b/include/haproxy/h3_stats.h @@ -10,7 +10,7 @@ struct h3_counters; -void h3_inc_err_cnt(void *ctx, int error_code); +void h3_inc_err_cnt(struct h3_counters *ctrs, int error_code); void h3_inc_frame_type_cnt(struct h3_counters *ctrs, int frm_type); #endif /* USE_QUIC */ diff --git a/src/h3_stats.c b/src/h3_stats.c index c35639bbd..de94e5c67 100644 --- a/src/h3_stats.c +++ b/src/h3_stats.c @@ -1,3 +1,5 @@ +#include + #include #include #include