BUILD: acme: avoid declaring TRACE_SOURCE in acme-t.h

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.
This commit is contained in:
William Lallemand 2025-07-31 16:03:28 +02:00
parent a6e67e7b41
commit 09275fd549
2 changed files with 2 additions and 3 deletions

View File

@ -94,7 +94,4 @@ struct acme_ctx {
#define ACME_VERB_ADVANCED 4 #define ACME_VERB_ADVANCED 4
#define ACME_VERB_COMPLETE 5 #define ACME_VERB_COMPLETE 5
#define TRACE_SOURCE &trace_acme
#endif #endif

View File

@ -36,6 +36,8 @@
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/trace.h> #include <haproxy/trace.h>
#define TRACE_SOURCE &trace_acme
#if defined(HAVE_ACME) #if defined(HAVE_ACME)
static void acme_trace(enum trace_level level, uint64_t mask, const struct trace_source *src, static void acme_trace(enum trace_level level, uint64_t mask, const struct trace_source *src,