From 00fcda1ff28c7826d230a4dd3b235b5be19cac07 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 18 Nov 2024 15:15:54 +0100 Subject: [PATCH] MINOR: acl: export find_acl_default() It will be needed in a future patch, so let's export it (it was static). --- include/haproxy/acl.h | 3 +++ src/acl.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/haproxy/acl.h b/include/haproxy/acl.h index 38b173985..b63b4fe84 100644 --- a/include/haproxy/acl.h +++ b/include/haproxy/acl.h @@ -50,6 +50,9 @@ static inline int acl_pass(enum acl_test_res res) * NULL if not found. */ struct acl *find_acl_by_name(const char *name, struct list *head); +struct acl *find_acl_default(const char *acl_name, struct list *known_acl, + char **err, struct arg_list *al, + const char *file, int line); /* Return a pointer to the ACL keyword within the list starting at , * or NULL if not found. Note that if contains an opening parenthesis, diff --git a/src/acl.c b/src/acl.c index c1f4edd1c..e607c9b76 100644 --- a/src/acl.c +++ b/src/acl.c @@ -757,9 +757,9 @@ const struct { * to report missing dependencies. It may be NULL if such dependencies are not * allowed. */ -static struct acl *find_acl_default(const char *acl_name, struct list *known_acl, - char **err, struct arg_list *al, - const char *file, int line) +struct acl *find_acl_default(const char *acl_name, struct list *known_acl, + char **err, struct arg_list *al, + const char *file, int line) { __label__ out_return, out_free_acl_expr, out_free_name; struct acl *cur_acl;