]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: initcall: rename HA_SECTION to HA_INIT_SECTION
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 13:17:21 +0000 (15:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 17:27:41 +0000 (19:27 +0200)
The HA_SECTION name is too generic and will be reused globally. Let's
rename this one.

include/haproxy/initcall.h

index 7066cfcd9a2c6b96a1c7f3cbc2cb404cf9c4c08a..56a524ffa71a0c8b7e41a40db5dec414d3b45d7f 100644 (file)
@@ -83,9 +83,9 @@ struct initcall {
 #if !defined(USE_OBSOLETE_LINKER)
 
 #ifdef __APPLE__
-#define HA_SECTION(s) __section__("__DATA, i_" # s)
+#define HA_INIT_SECTION(s) __section__("__DATA, i_" # s)
 #else
-#define HA_SECTION(s) __section__("i_" # s)
+#define HA_INIT_SECTION(s) __section__("i_" # s)
 #endif
 
 /* Declare a static variable in the init section dedicated to stage <stg>,
@@ -104,7 +104,7 @@ struct initcall {
         __GLOBL(__start_i_##stg );                                 \
         __GLOBL(__stop_i_##stg );                                  \
        static const struct initcall *__initcb_##linenum           \
-           __attribute__((__used__,HA_SECTION(stg))) =            \
+           __attribute__((__used__,HA_INIT_SECTION(stg))) =       \
                (stg < STG_SIZE) ? &(const struct initcall) {      \
                .fct = (void (*)(void *,void *,void *))function,   \
                .arg1 = (void *)(a1),                              \