diff --git a/include/haproxy/stats-html.h b/include/haproxy/stats-html.h
index 3102290c7..912ec5987 100644
--- a/include/haproxy/stats-html.h
+++ b/include/haproxy/stats-html.h
@@ -15,7 +15,7 @@ int stats_dump_fields_html(struct buffer *out, const struct field *stats,
struct show_stat_ctx *ctx);
void stats_dump_html_px_hdr(struct stconn *sc, struct proxy *px);
void stats_dump_html_px_end(struct stconn *sc, struct proxy *px);
-void stats_dump_html_end();
+void stats_dump_html_end(struct buffer *out);
extern struct applet http_stats_applet;