From: Willy Tarreau Date: Tue, 11 Apr 2017 05:53:04 +0000 (+0200) Subject: BUILD/MINOR: stats: remove unexpected argument to stats_dump_json_header() X-Git-Tag: v1.8-dev2~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d7fb63e33535cbd81d3c3c5fb512ace19c03ba2;p=thirdparty%2Fhaproxy.git BUILD/MINOR: stats: remove unexpected argument to stats_dump_json_header() 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. --- diff --git a/src/stats.c b/src/stats.c index 736852b33e..8f73b7d4df 100644 --- a/src/stats.c +++ b/src/stats.c @@ -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();