]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proxy: fix duplicate declaration of cli_find_frontend in proxy.h
authorWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 08:36:53 +0000 (08:36 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 16:24:57 +0000 (18:24 +0200)
The function cli_find_frontend was declared twice identically at lines 98-99
of include/haproxy/proxy.h. The second declaration should have been for
cli_find_backend, which is defined in src/proxy.c and used in several places
but was missing from the header's exported symbols.

This is a simple copy-paste mistake where line 99 duplicated line 98 verbatim
instead of declaring cli_find_backend.

include/haproxy/proxy.h

index 7a8a155198dd56d50e83a27c3d520ce22e5fb4d6..f5f29f96f1d28c48bd3c89681f34d28072d2a9f4 100644 (file)
@@ -96,7 +96,7 @@ void proxy_capture_error(struct proxy *proxy, int is_back,
                         void (*show)(struct buffer *, const struct error_snapshot *));
 void proxy_adjust_all_maxconn(void);
 struct proxy *cli_find_frontend(struct appctx *appctx, const char *arg);
-struct proxy *cli_find_frontend(struct appctx *appctx, const char *arg);
+struct proxy *cli_find_backend(struct appctx *appctx, const char *arg);
 int resolve_stick_rule(struct proxy *curproxy, struct sticking_rule *mrule);
 void free_stick_rules(struct list *rules);
 void free_server_rules(struct list *srules);