From: Thierry Fournier Date: Wed, 24 Feb 2016 07:23:22 +0000 (+0100) Subject: CLEANUP: server: add "const" to some message strings X-Git-Tag: v1.7-dev2~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d35b7a6d93492257997b8a2786c9490af5c0592b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/proto/server.h b/include/proto/server.h index d75cc9f083..99af0d4528 100644 --- a/include/proto/server.h +++ b/include/proto/server.h @@ -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); diff --git a/src/server.c b/src/server.c index cd32e8040c..4e8f835dc5 100644 --- a/src/server.c +++ b/src/server.c @@ -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) {