]> git.proxmox.com Git - mirror_frr.git/commit - lib/hook.h
lib: fix hook defs for -Wstrict-prototypes
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 31 Aug 2021 21:14:10 +0000 (23:14 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 2 Sep 2021 11:00:35 +0000 (13:00 +0200)
commit14040553bc8db794de5f44b622c20ff8437479ff
tree09977be1706d94ce39264f306cbbe65f7a6d3cdb
parentf94825578a05eb769f40b5990ba9d77d92064dca
lib: fix hook defs for -Wstrict-prototypes

Without this, the hook code creates functions with empty parameter lists
like "void hook_something()", which is not a proper C prototype.  It
needs to be "void hook_something(void)".  Add some macro shenanigans to
handle that.

... and make the plumbing functions "inline" too.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/hook.h