1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-01-31 02:22:07 +00:00

MINOR: backends: Change get_server_sh/get_server_uh into private function

This commit is contained in:
Christopher Faulet 2017-06-09 14:20:29 +02:00 committed by Willy Tarreau
parent 87566c923b
commit f0614e8111
2 changed files with 2 additions and 4 deletions
include/proto
src

View 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 */

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