From 9d7fb63e33535cbd81d3c3c5fb512ace19c03ba2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 11 Apr 2017 07:53:04 +0200 Subject: [PATCH] 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. --- src/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index 736852b33..8f73b7d4d 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();