This function was only used by TCP actions and was private to tcp_act.c
file. However, it make sense to make it public to be used by any action
relying on an int-or-expression argument.
release_sample_expr(rule->arg.timeout.expr);
}
+/*
+ * Release expr_int rule argument when action is no longer used
+ */
+static inline void release_expr_int_action(struct act_rule *rule)
+{
+ release_sample_expr(rule->arg.expr_int.expr);
+}
+
struct act_rule *new_act_rule(enum act_from from, const char *file, int linenum);
void free_act_rules(struct list *rules);
void dump_act_rules(const struct list *rules, const char *pfx);
#include <netinet/tcp.h>
#include <netinet/in.h>
-#include <haproxy/action-t.h>
+#include <haproxy/action.h>
#include <haproxy/api.h>
#include <haproxy/arg.h>
#include <haproxy/channel.h>
release_sample_expr(rule->arg.expr);
}
-/*
- * Release expr_int rule argument when action is no longer used
- */
-static __maybe_unused void release_expr_int_action(struct act_rule *rule)
-{
- release_sample_expr(rule->arg.expr_int.expr);
-}
-
static int tcp_check_attach_srv(struct act_rule *rule, struct proxy *px, char **err)
{
struct proxy *be = NULL;