]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: h3: adjust diverging prototype
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 2 Dec 2026 16:09:37 +0000 (17:09 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 3 Dec 2026 10:49:20 +0000 (11:49 +0100)
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.

include/haproxy/h3_stats.h
src/h3_stats.c

index ed7c5e796fa9800966c37acba8e33926139b04a1..c1c79903c77bc4708654b360ade6ddca4148d9b0 100644 (file)
@@ -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 */
index c35639bbd1adb141185ad1dfa2ee229cf1fa6c94..de94e5c6752e21408fb7d6b758dd0ae465f2bd8e 100644 (file)
@@ -1,3 +1,5 @@
+#include <haproxy/h3_stats.h>
+
 #include <haproxy/h3.h>
 #include <haproxy/qpack-t.h>
 #include <haproxy/stats.h>