From: William Lallemand Date: Thu, 31 Jul 2025 14:03:28 +0000 (+0200) Subject: BUILD: acme: avoid declaring TRACE_SOURCE in acme-t.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09275fd549d083cd5a61143d176b65f9cffc1711;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/acme-t.h b/include/haproxy/acme-t.h index c37b5a220..c92c67642 100644 --- a/include/haproxy/acme-t.h +++ b/include/haproxy/acme-t.h @@ -94,7 +94,4 @@ struct acme_ctx { #define ACME_VERB_ADVANCED 4 #define ACME_VERB_COMPLETE 5 -#define TRACE_SOURCE &trace_acme - - #endif diff --git a/src/acme.c b/src/acme.c index 81452bf9b..7f1eb4fe3 100644 --- a/src/acme.c +++ b/src/acme.c @@ -36,6 +36,8 @@ #include #include +#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,