mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-20 12:46:56 +00:00
BUILD: tcpcheck: do not declare tcp_check_keywords_register() inline
This one is referenced in initcalls by its pointer, it makes no sense to declare it inline. At best it causes function duplication, at worst it doesn't build on older compilers.
This commit is contained in:
parent
4de2cda104
commit
a631b86523
@ -102,6 +102,7 @@ int proxy_parse_spop_check_opt(char **args, int cur_arg, struct proxy *curpx, co
|
||||
int proxy_parse_httpchk_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
|
||||
const char *file, int line);
|
||||
|
||||
void tcp_check_keywords_register(struct action_kw_list *kw_list);
|
||||
|
||||
/* Return the struct action_kw associated to a keyword */
|
||||
static inline struct action_kw *action_kw_tcp_check_lookup(const char *kw)
|
||||
@ -114,11 +115,6 @@ static inline void action_kw_tcp_check_build_list(struct buffer *chk)
|
||||
action_build_list(&tcp_check_keywords.list, chk);
|
||||
}
|
||||
|
||||
static inline void tcp_check_keywords_register(struct action_kw_list *kw_list)
|
||||
{
|
||||
LIST_APPEND(&tcp_check_keywords.list, &kw_list->list);
|
||||
}
|
||||
|
||||
#endif /* _HAPROXY_TCPCHECK_H */
|
||||
|
||||
/*
|
||||
|
@ -2316,6 +2316,10 @@ int tcpcheck_main(struct check *check)
|
||||
return retcode;
|
||||
}
|
||||
|
||||
void tcp_check_keywords_register(struct action_kw_list *kw_list)
|
||||
{
|
||||
LIST_APPEND(&tcp_check_keywords.list, &kw_list->list);
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
/******************* Internals to parse tcp-check rules *******************/
|
||||
|
Loading…
Reference in New Issue
Block a user