]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: initcall: adjust comments to INITCALL{0,1} macros
authorEgor Shestakov <egor@ved1.me>
Mon, 9 Feb 2026 18:44:37 +0000 (18:44 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Feb 2026 08:10:56 +0000 (09:10 +0100)
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

index 1f44e5e221b8e684d9579ceb2b9adf77f2a4b8f0..a5f2bd2a8a6808f107e9de4bb5c147f260769153 100644 (file)
@@ -147,14 +147,14 @@ __attribute__((constructor)) static void __initcb_##linenum()      \
 #define _DECLARE_INITCALL(...) \
        __DECLARE_INITCALL(__VA_ARGS__)
 
-/* This requires that function <function> is called with pointer argument
- * <argument> during init stage <stage> which must be one of init_stage.
+/* This requires that function <function> is called without arguments
+ * during init stage <stage> which must be one of init_stage.
  */
 #define INITCALL0(stage, function)                                     \
        _DECLARE_INITCALL(stage, __LINE__, function, 0, 0, 0)
 
 /* This requires that function <function> is called with pointer argument
- * <argument> during init stage <stage> which must be one of init_stage.
+ * <arg1> during init stage <stage> which must be one of init_stage.
  */
 #define INITCALL1(stage, function, arg1)                               \
        _DECLARE_INITCALL(stage, __LINE__, function, arg1, 0, 0)