From: William Dauchy Date: Mon, 4 May 2020 11:52:40 +0000 (+0200) Subject: CLEANUP: connections: align function declaration X-Git-Tag: v2.2-dev7~24 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=707ad328ef6f9061f2da04f81431bc2fe2b2348a;p=haproxy-3.0.git CLEANUP: connections: align function declaration srv_cleanup_connections() is supposed to be static, so mark it as so. This patch should be backported where commit 6318d33ce625 ("BUG/MEDIUM: connections: force connections cleanup on server changes") will be backported, that is to say v1.9 to v2.1. Fixes: 6318d33ce625 ("BUG/MEDIUM: connections: force connections cleanup on server changes") Signed-off-by: William Dauchy --- diff --git a/src/server.c b/src/server.c index 94e7aee..9e74fa4 100644 --- a/src/server.c +++ b/src/server.c @@ -5169,7 +5169,7 @@ struct task *srv_cleanup_toremove_connections(struct task *task, void *context, /* cleanup connections for a given server * might be useful when going on forced maintenance or live changing ip/port */ -void srv_cleanup_connections(struct server *srv) +static void srv_cleanup_connections(struct server *srv) { struct connection *conn; int did_remove;