mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-26 00:01:45 +02:00
CLEANUP: server: add "const" to some message strings
"updater" is used in "read only" mode, so I add a const qualifier to the variable declaration.
This commit is contained in:
parent
c62df8463b
commit
d35b7a6d93
@ -39,7 +39,7 @@ int srv_downtime(const struct server *s);
|
||||
int srv_lastsession(const struct server *s);
|
||||
int srv_getinter(const struct check *check);
|
||||
int parse_server(const char *file, int linenum, char **args, struct proxy *curproxy, struct proxy *defproxy);
|
||||
int update_server_addr(struct server *s, void *ip, int ip_sin_family, char *updater);
|
||||
int update_server_addr(struct server *s, void *ip, int ip_sin_family, const char *updater);
|
||||
struct server *server_find_by_id(struct proxy *bk, int id);
|
||||
struct server *server_find_by_name(struct proxy *bk, const char *name);
|
||||
struct server *server_find_best_match(struct proxy *bk, char *name, int id, int *diff);
|
||||
|
@ -2558,7 +2558,7 @@ fileclose:
|
||||
*
|
||||
* A log line and a stderr warning message is generated based on server's backend options.
|
||||
*/
|
||||
int update_server_addr(struct server *s, void *ip, int ip_sin_family, char *updater)
|
||||
int update_server_addr(struct server *s, void *ip, int ip_sin_family, const char *updater)
|
||||
{
|
||||
/* generates a log line and a warning on stderr */
|
||||
if (1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user