]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: acme: avoid declaring TRACE_SOURCE in acme-t.h
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 31 Jul 2025 14:03:28 +0000 (16:03 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 31 Jul 2025 14:03:28 +0000 (16:03 +0200)
Files ending with '-t.h' are supposed to be used for structure
definitions and could be included in the same file to check API
definitions.

This patch removes TRACE_SOURCE from acme-t.h to avoid conflicts with
other TRACE_SOURCE definitions.

include/haproxy/acme-t.h
src/acme.c

index c37b5a220442fa7a165435791f9f114c3d746bf4..c92c67642362e9cac61174e566d1089405cb9aa5 100644 (file)
@@ -94,7 +94,4 @@ struct acme_ctx {
 #define ACME_VERB_ADVANCED 4
 #define ACME_VERB_COMPLETE 5
 
-#define TRACE_SOURCE &trace_acme
-
-
 #endif
index 81452bf9b7ae60088bfd58334ac9948549dee86b..7f1eb4fe37b64d09213273b48e67b978713cd3e7 100644 (file)
@@ -36,6 +36,8 @@
 #include <haproxy/tools.h>
 #include <haproxy/trace.h>
 
+#define TRACE_SOURCE &trace_acme
+
 #if defined(HAVE_ACME)
 
 static void acme_trace(enum trace_level level, uint64_t mask, const struct trace_source *src,