]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: backend: Don't export connect_server anymore
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Jan 2022 08:53:00 +0000 (09:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:03 +0000 (11:00 +0100)
connect_server() function is only called from backend.c. So make it static.

include/haproxy/backend.h
src/backend.c

index a6ac621dda5a1b62316ee7a7413742ed0fb20edb..308848b3f8cb6481e1c770ffdf5e9e398cf6ea99 100644 (file)
@@ -32,7 +32,6 @@
 int assign_server(struct stream *s);
 int assign_server_address(struct stream *s);
 int assign_server_and_queue(struct stream *s);
-int connect_server(struct stream *s);
 int srv_redispatch_connect(struct stream *t);
 void back_try_conn_req(struct stream *s);
 void back_handle_st_req(struct stream *s);
index 0fed42a461131444f9666442422c96c06b47e3ab..83c4d52f564dbe137df57f544ca5930d0ee91969 100644 (file)
@@ -1247,7 +1247,7 @@ static struct connection *conn_backend_get(struct stream *s, struct server *srv,
  * The server-facing stream interface is expected to hold a pre-allocated connection
  * in s->csb->si->conn.
  */
-int connect_server(struct stream *s)
+static int connect_server(struct stream *s)
 {
        struct connection *cli_conn = objt_conn(strm_orig(s));
        struct connection *srv_conn = NULL;