diff options
| author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
|---|---|---|
| committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
| commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
| tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /lib/hook.c | |
| parent | 888ac268a0077fc9ebd1218cec6ae472af0bfc40 (diff) | |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/hook.c')
| -rw-r--r-- | lib/hook.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/hook.c b/lib/hook.c index 04d803cd8d..2c877cbf45 100644 --- a/lib/hook.c +++ b/lib/hook.c @@ -39,18 +39,15 @@ void _hook_register(struct hook *hook, void *funcptr, void *arg, bool has_arg, hook->entries = he; } -void _hook_unregister(struct hook *hook, void *funcptr, - void *arg, bool has_arg) +void _hook_unregister(struct hook *hook, void *funcptr, void *arg, bool has_arg) { struct hookent *he, **prev; for (prev = &hook->entries; (he = *prev) != NULL; prev = &he->next) if (he->hookfn == funcptr && he->hookarg == arg - && he->has_arg == has_arg) - { + && he->has_arg == has_arg) { *prev = he->next; XFREE(MTYPE_HOOK_ENTRY, he); break; } } - |
