From f5f9c008b1c6077216561144d43d697f970c799a Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Mon, 9 Feb 2026 18:44:37 +0000 Subject: [PATCH] CLEANUP: initcall: adjust comments to INITCALL{0,1} macros It is likely that copy-pasted text was not initially adjusted in the comments, that is misleading regarding number of arguments. No backport needed. --- include/haproxy/initcall.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/haproxy/initcall.h b/include/haproxy/initcall.h index 1f44e5e22..a5f2bd2a8 100644 --- a/include/haproxy/initcall.h +++ b/include/haproxy/initcall.h @@ -147,14 +147,14 @@ __attribute__((constructor)) static void __initcb_##linenum() \ #define _DECLARE_INITCALL(...) \ __DECLARE_INITCALL(__VA_ARGS__) -/* This requires that function is called with pointer argument - * during init stage which must be one of init_stage. +/* This requires that function is called without arguments + * during init stage which must be one of init_stage. */ #define INITCALL0(stage, function) \ _DECLARE_INITCALL(stage, __LINE__, function, 0, 0, 0) /* This requires that function is called with pointer argument - * during init stage which must be one of init_stage. + * during init stage which must be one of init_stage. */ #define INITCALL1(stage, function, arg1) \ _DECLARE_INITCALL(stage, __LINE__, function, arg1, 0, 0) -- 2.47.3