summaryrefslogtreecommitdiff
path: root/lib/hook.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-07 10:44:37 -0500
committerGitHub <noreply@github.com>2018-03-07 10:44:37 -0500
commit54085eafebc926e7c004d4c0a8da519dad53c682 (patch)
tree58a8459c4665ca73e537eefcc24c1a8274591645 /lib/hook.c
parent8590fba34f5bb7d220579cc1d9be31d73d5672f2 (diff)
parent30d85a309075db2fafbc8da7a5c7f564474c48c3 (diff)
Merge pull request #1428 from LabNConsulting/working/master/indent
frr: conform with COMMUNITY.md formatting rules
Diffstat (limited to 'lib/hook.c')
-rw-r--r--lib/hook.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hook.c b/lib/hook.c
index 1468c4d329..935064f4d2 100644
--- a/lib/hook.c
+++ b/lib/hook.c
@@ -38,9 +38,8 @@ void _hook_register(struct hook *hook, void *funcptr, void *arg, bool has_arg,
he->priority = priority;
for (pos = &hook->entries; *pos; pos = &(*pos)->next)
- if (hook->reverse
- ? (*pos)->priority < priority
- : (*pos)->priority >= priority)
+ if (hook->reverse ? (*pos)->priority < priority
+ : (*pos)->priority >= priority)
break;
he->next = *pos;