Commit 6239fe7959 for bind
commit 6239fe7959be60a1833c38cc5fe224c5f9a62462
Author: Michal Nowak <mnowak@isc.org>
Date: Fri Oct 2 10:54:04 2026 +0000
Remove the atomic_ptr() wrapper
The wrapper has a single user and saves nothing over spelling out
_Atomic(type *). Coccinelle cannot parse its definition, so the header
costs the semantic patches a few lines of coverage for no benefit.
Assisted-by: Claude:claude-opus-5-5 coccinelle
diff --git a/lib/isc/histo.c b/lib/isc/histo.c
index 985044ff07..a5098b58f7 100644
--- a/lib/isc/histo.c
+++ b/lib/isc/histo.c
@@ -63,7 +63,7 @@
#define CHUNKSIZE(hg) MANTISSAS(hg)
typedef atomic_uint_fast64_t hg_bucket_t;
-typedef atomic_ptr(hg_bucket_t) hg_chunk_t;
+typedef _Atomic(hg_bucket_t *) hg_chunk_t;
struct isc_histo {
unsigned int magic;
diff --git a/lib/isc/include/isc/atomic.h b/lib/isc/include/isc/atomic.h
index 2d1a09fb33..f4c841a6b9 100644
--- a/lib/isc/include/isc/atomic.h
+++ b/lib/isc/include/isc/atomic.h
@@ -74,6 +74,3 @@
/* compare/exchange that MUST succeed */
#define atomic_compare_exchange_enforced(o, e, d) \
RUNTIME_CHECK(atomic_compare_exchange_strong((o), (e), (d)))
-
-/* more comfortable atomic pointer declarations */
-#define atomic_ptr(type) _Atomic(type *)