From: Willy Tarreau Date: Fri, 12 Mar 2021 10:12:38 +0000 (+0100) Subject: CLEANUP: actions: the keyword must always be const from the rule X-Git-Tag: v2.4-dev12~43 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=133c8c412e8539e2bebdaec1a403445719832a8a;p=haproxy-2.5.git CLEANUP: actions: the keyword must always be const from the rule There's no reason for a rule to want to modify an action keyword, let's make sure it is always const. --- diff --git a/include/haproxy/action-t.h b/include/haproxy/action-t.h index 7079096..91042e0 100644 --- a/include/haproxy/action-t.h +++ b/include/haproxy/action-t.h @@ -111,7 +111,7 @@ struct act_rule { struct session *sess, struct stream *s, int opts); int (*check_ptr)(struct act_rule *rule, struct proxy *px, char **err); /* ptr to check function */ void (*release_ptr)(struct act_rule *rule); /* ptr to release function */ - struct action_kw *kw; + const struct action_kw *kw; struct applet applet; /* used for the applet registration. */ union { struct {