mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
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.
This commit is contained in:
parent
ea92b0ef01
commit
f5f9c008b1
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue