CLEANUP: backend: Don't export connect_server anymore

connect_server() function is only called from backend.c. So make it static.
This commit is contained in:
Christopher Faulet 2022-01-13 09:53:00 +01:00
parent e3a3af1ec8
commit c983b2114d
2 changed files with 1 additions and 2 deletions

View 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);

View 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;