]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connections: align function declaration
authorWilliam Dauchy <w.dauchy@criteo.com>
Mon, 4 May 2020 11:52:40 +0000 (13:52 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 4 May 2020 17:26:19 +0000 (19:26 +0200)
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 <w.dauchy@criteo.com>
src/server.c

index 94e7aeed1a8b01ff58eb7cd26bedb3bce051f188..9e74fa4852c220062df087ad4680a873672ae249 100644 (file)
@@ -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;