]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: list: fixing typo in MT_LIST_LOCK_ELT
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 20 Oct 2022 07:19:30 +0000 (09:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Oct 2022 14:26:27 +0000 (16:26 +0200)
A minor typo was made in MT_LIST_LOCK_ELT, preventing
haproxy from compiling if MT_LIST_LOCK_ELT is
used in the code.

Today, the macro is unused, and that's the reason why
the typo has remained unnoticed for such a long time.

Fixing it so it can be used in upcoming developments.

No backport required.

include/haproxy/list.h

index c6438fb9da8022a723811b3eba7adf91da17d71a..332098349b074bbb342833ff311a27ebfea6cb18 100644 (file)
 #define MT_LIST_LOCK_ELT(_el)                                              \
        ({                                                                 \
                struct mt_list ret;                                        \
-               struct mt_liet *el = (_el);                                \
+               struct mt_list *el = (_el);                                \
                for (;;__ha_cpu_relax()) {                                 \
                        struct mt_list *n, *n2;                            \
                        struct mt_list *p, *p2 = NULL;                     \