]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: stats: remove unexpected argument to stats_dump_json_header()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Apr 2017 05:53:04 +0000 (07:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Apr 2017 05:54:45 +0000 (07:54 +0200)
Commit 05ee213 ("MEDIUM: stats: Add JSON output option to show (info|stat)")
used to pass argument "uri" to the aforementionned function which doesn't
take any. It's probably a leftover from multiple iterations of the same
patchset. Spotted by Dmitry Sivachenko. No backport is needed.

src/stats.c

index 736852b33ece9c6a00c46adbb26f078d2b460910..8f73b7d4df1e8039bbba9612e74ec1d027e7319d 100644 (file)
@@ -2530,7 +2530,7 @@ static int stats_dump_stat_to_buffer(struct stream_interface *si, struct uri_aut
                if (appctx->ctx.stats.flags & STAT_FMT_HTML)
                        stats_dump_html_head(uri);
                else if (appctx->ctx.stats.flags & STAT_FMT_JSON)
-                       stats_dump_json_header(uri);
+                       stats_dump_json_header();
                else if (!(appctx->ctx.stats.flags & STAT_FMT_TYPED))
                        stats_dump_csv_header();