Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind/include/isc bind: fix typo in stdatomic to...



details:   https://anonhg.NetBSD.org/src/rev/ca2a33477e78
branches:  trunk
changeset: 960699:ca2a33477e78
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Mar 27 00:06:27 2021 +0000

description:
bind: fix typo in stdatomic to support lint + Clang

Before this fix, lint complained:
> dist/lib/isc/queue.c(203): error: expected undefined [99]

https://gitlab.isc.org/isc-projects/bind9/-/issues/2601

diffstat:

 external/mpl/bind/dist/lib/isc/unix/include/isc/stdatomic.h |  4 ++--
 external/mpl/bind/include/isc/stdatomic.h                   |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r a8e9bbefb1f8 -r ca2a33477e78 external/mpl/bind/dist/lib/isc/unix/include/isc/stdatomic.h
--- a/external/mpl/bind/dist/lib/isc/unix/include/isc/stdatomic.h       Fri Mar 26 23:17:33 2021 +0000
+++ b/external/mpl/bind/dist/lib/isc/unix/include/isc/stdatomic.h       Sat Mar 27 00:06:27 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdatomic.h,v 1.3 2021/02/19 16:42:20 christos Exp $   */
+/*     $NetBSD: stdatomic.h,v 1.4 2021/03/27 00:06:27 rillig Exp $     */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -144,7 +144,7 @@
        __c11_atomic_compare_exchange_weak_explicit(obj, expected, desired, \
                                                    succ, fail)
 #define atomic_exchange_explicit(obj, desired, order) \
-       __c11_atomic_exchange_explicit(obj, expected, order)
+       __c11_atomic_exchange_explicit(obj, desired, order)
 #elif defined(__GNUC_ATOMICS) /* __atomic builtins */
 #define atomic_init(obj, desired)       (*obj = desired)
 #define atomic_load_explicit(obj, order) __atomic_load_n(obj, order)
diff -r a8e9bbefb1f8 -r ca2a33477e78 external/mpl/bind/include/isc/stdatomic.h
--- a/external/mpl/bind/include/isc/stdatomic.h Fri Mar 26 23:17:33 2021 +0000
+++ b/external/mpl/bind/include/isc/stdatomic.h Sat Mar 27 00:06:27 2021 +0000
@@ -142,7 +142,7 @@
        __c11_atomic_compare_exchange_weak_explicit(obj, expected, desired, \
                                                    succ, fail)
 #define atomic_exchange_explicit(obj, desired, order) \
-       __c11_atomic_exchange_explicit(obj, expected, order)
+       __c11_atomic_exchange_explicit(obj, desired, order)
 #elif defined(__GNUC_ATOMICS) /* __atomic builtins */
 #define atomic_init(obj, desired)       (*obj = desired)
 #define atomic_load_explicit(obj, order) __atomic_load_n(obj, order)



Home | Main Index | Thread Index | Old Index