From: Willy Tarreau Date: Mon, 11 Jan 2016 14:22:55 +0000 (+0100) Subject: CLEANUP: stats: make stats_dump_fields_html() not rely on proxy anymore X-Git-Tag: v1.7-dev2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36090d2236b48d7aee6f235388868d4860610d1b;p=thirdparty%2Fhaproxy.git CLEANUP: stats: make stats_dump_fields_html() not rely on proxy anymore Now this function doesn't need to use the proxy anymore, remove it from its arguments. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 64d60b0696..f7e759743f 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -3260,11 +3260,11 @@ static int stats_dump_fields_csv(struct chunk *out, const struct field *stats) return 1; } -/* Dump all fields from for proxy into trash using the HTML format. +/* Dump all fields from into trash using the HTML format. * A column is reserved for the checkbox is is non-null. The caller's * flags may be passed in (eg: SHLGNDS to show the legends). */ -static int stats_dump_fields_html(const struct field *stats, int admin, unsigned int flags, struct proxy *px) +static int stats_dump_fields_html(const struct field *stats, int admin, unsigned int flags) { struct chunk src; @@ -3904,7 +3904,7 @@ static int stats_dump_one_line(const struct field *stats, unsigned int flags, st admin = (px->cap & PR_CAP_BE) && px->srv && (appctx->ctx.stats.flags & STAT_ADMIN); if (appctx->ctx.stats.flags & STAT_FMT_HTML) - return stats_dump_fields_html(stats, admin, flags, px); + return stats_dump_fields_html(stats, admin, flags); else return stats_dump_fields_csv(&trash, stats); }