summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2020-01-20 11:12:26 +0100
committerDavid Lamparter <equinox@diac24.net>2020-04-01 06:53:26 +0200
commit8d0a2918e8c517731b4b71a4d9f40693938e6385 (patch)
tree77fc7c2adacab1eff61f20d7e5a73fc740b4adba /lib/libfrr.c
parent1c4086281f72fd8b6fdf824a6edfaebe1871e383 (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