From c983b2114d3f37f3207d812f92d0e00d1860753f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 13 Jan 2022 09:53:00 +0100 Subject: [PATCH] CLEANUP: backend: Don't export connect_server anymore connect_server() function is only called from backend.c. So make it static. --- include/haproxy/backend.h | 1 - src/backend.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/haproxy/backend.h b/include/haproxy/backend.h index a6ac621dd..308848b3f 100644 --- a/include/haproxy/backend.h +++ b/include/haproxy/backend.h @@ -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); diff --git a/src/backend.c b/src/backend.c index 0fed42a46..83c4d52f5 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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;