diff options
| author | whitespace / reindent <invalid@invalid.invalid> | 2017-08-09 11:49:42 +0200 | 
|---|---|---|
| committer | whitespace / reindent <invalid@invalid.invalid> | 2017-08-09 12:03:17 +0200 | 
| commit | ac4d0be5874fafd14212d6007fff7495edc9b152 (patch) | |
| tree | 5e2f0d3189de928c849f9983406389ade3b098cb /lib/hook.c | |
| parent | 76a86854181c27819e5cf71b12ae1fa5ccd9e02a (diff) | |
*: reindentreindent-3.0-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;  		}  } -  | 
