]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: backends: Change get_server_sh/get_server_uh into private function
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Jun 2017 12:20:29 +0000 (14:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Jun 2017 12:38:02 +0000 (14:38 +0200)
include/proto/backend.h
src/backend.c

index 39a7f3d28b4177fe1f7a4872d83c301c92b005be..430a6a13e29ff68860d4086946f069d3bdb3194f 100644 (file)
@@ -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 */
index b0e03323a57231327d24d1ec12cd12fca88ba073..c45a74e9a31c97a927d6ac030a4158b6886fb9a1 100644 (file)
@@ -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;