From 50221d6ff1ebfbd7bc97d11a17d12f0a5926d18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Fri, 20 Sep 2024 16:06:55 +0200 Subject: [PATCH] Update code formatting clang 19 was updated in the base image. (cherry picked from commit ebb5bd9c0f079de8970b538fe48e5f5c60ea7ee9) --- lib/dns/include/dns/rdata.h | 5 ++++- lib/isc/include/isc/net.h | 12 ++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h index 5cb5583c76..51dc0804b8 100644 --- a/lib/dns/include/dns/rdata.h +++ b/lib/dns/include/dns/rdata.h @@ -117,7 +117,10 @@ struct dns_rdata { ISC_LINK(dns_rdata_t) link; }; -#define DNS_RDATA_INIT { NULL, 0, 0, 0, 0, { (void *)(-1), (void *)(-1) } } +#define DNS_RDATA_INIT \ + { \ + NULL, 0, 0, 0, 0, { (void *)(-1), (void *)(-1) } \ + } #define DNS_RDATA_CHECKINITIALIZED #ifdef DNS_RDATA_CHECKINITIALIZED diff --git a/lib/isc/include/isc/net.h b/lib/isc/include/isc/net.h index 9099d48a22..1699d5f9fb 100644 --- a/lib/isc/include/isc/net.h +++ b/lib/isc/include/isc/net.h @@ -79,8 +79,10 @@ #ifndef IN6ADDR_LOOPBACK_INIT #ifdef s6_addr /*% IPv6 address loopback init */ -#define IN6ADDR_LOOPBACK_INIT \ - { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } } } +#define IN6ADDR_LOOPBACK_INIT \ + { \ + { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } } \ + } #else /* ifdef s6_addr */ #define IN6ADDR_LOOPBACK_INIT \ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } } @@ -90,8 +92,10 @@ #ifndef IN6ADDR_V4MAPPED_INIT #ifdef s6_addr /*% IPv6 v4mapped prefix init */ -#define IN6ADDR_V4MAPPED_INIT \ - { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0, 0, 0, 0 } } } +#define IN6ADDR_V4MAPPED_INIT \ + { \ + { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0, 0, 0, 0 } } \ + } #else /* ifdef s6_addr */ #define IN6ADDR_V4MAPPED_INIT \ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff, 0, 0, 0, 0 } }