From f0614e81115bb3f3f8a01f25022f5c4880afb87b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 9 Jun 2017 14:20:29 +0200 Subject: [PATCH] MINOR: backends: Change get_server_sh/get_server_uh into private function --- include/proto/backend.h | 2 -- src/backend.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/proto/backend.h b/include/proto/backend.h index 39a7f3d28..430a6a13e 100644 --- a/include/proto/backend.h +++ b/include/proto/backend.h @@ -42,8 +42,6 @@ int tcp_persist_rdp_cookie(struct stream *s, struct channel *req, int an_bit); int be_downtime(struct proxy *px); void recount_servers(struct proxy *px); void update_backend_weight(struct proxy *px); -struct server *get_server_sh(struct proxy *px, const char *addr, int len); -struct server *get_server_uh(struct proxy *px, char *uri, int uri_len); int be_lastsession(const struct proxy *be); /* Returns number of usable servers in backend */ diff --git a/src/backend.c b/src/backend.c index b0e03323a..c45a74e9a 100644 --- a/src/backend.c +++ b/src/backend.c @@ -152,7 +152,7 @@ void update_backend_weight(struct proxy *px) * If any server is found, it will be returned. If no valid server is found, * NULL is returned. */ -struct server *get_server_sh(struct proxy *px, const char *addr, int len) +static struct server *get_server_sh(struct proxy *px, const char *addr, int len) { unsigned int h, l; @@ -190,7 +190,7 @@ struct server *get_server_sh(struct proxy *px, const char *addr, int len) * algorithm out of a tens because it gave him the best results. * */ -struct server *get_server_uh(struct proxy *px, char *uri, int uri_len) +static struct server *get_server_uh(struct proxy *px, char *uri, int uri_len) { unsigned int hash = 0; int c;