From 133c8c412e8539e2bebdaec1a403445719832a8a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 12 Mar 2021 11:12:38 +0100 Subject: [PATCH] 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. --- include/haproxy/action-t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 1.7.10.4