summaryrefslogtreecommitdiffstats
path: root/lib/hook.c
diff options
context:
space:
mode:
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 1468c4d32..935064f4d 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;