From: Christopher Faulet Date: Fri, 9 Jun 2017 12:20:29 +0000 (+0200) Subject: MINOR: backends: Change get_server_sh/get_server_uh into private function X-Git-Tag: v1.8-dev3~272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0614e81115bb3f3f8a01f25022f5c4880afb87b;p=thirdparty%2Fhaproxy.git MINOR: backends: Change get_server_sh/get_server_uh into private function --- diff --git a/include/proto/backend.h b/include/proto/backend.h index 39a7f3d28b..430a6a13e2 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 b0e03323a5..c45a74e9a3 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;