diff options
| author | David Lamparter <equinox@diac24.net> | 2020-01-20 11:12:26 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-01 06:53:26 +0200 |
| commit | 8d0a2918e8c517731b4b71a4d9f40693938e6385 (patch) | |
| tree | 77fc7c2adacab1eff61f20d7e5a73fc740b4adba /lib/libfrr.c | |
| parent | 1c4086281f72fd8b6fdf824a6edfaebe1871e383 (diff) | |
lib/hook: use static hook entry when possible
hook_register() invocations generally are in some initialization
function and not looped over or similar. We can use a static struct
hookent variable for the hook list entry in 99.999% of cases, so let's
do that and not malloc() memory.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/libfrr.c')
0 files changed, 0 insertions, 0 deletions
