From: Pietro Cerutti Date: Tue, 25 Jul 2017 19:58:18 +0000 (+0000) Subject: More idiomatic definition of HookHead X-Git-Tag: neomutt-20170907~35^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fcd03339b78e791a2a3f3b045565162cda86dd4;p=neomutt More idiomatic definition of HookHead Issue #374 --- diff --git a/hook.c b/hook.c index 4810dcf53..a361794f1 100644 --- a/hook.c +++ b/hook.c @@ -50,7 +50,7 @@ /** * struct Hook - A list of user hooks */ -TAILQ_HEAD(HookHead, Hook); +static TAILQ_HEAD(HookHead, Hook) Hooks = TAILQ_HEAD_INITIALIZER(Hooks); struct Hook { int type; /**< hook type */ @@ -60,8 +60,6 @@ struct Hook TAILQ_ENTRY(Hook) entries; }; -static struct HookHead Hooks = TAILQ_HEAD_INITIALIZER(Hooks); - static int current_hook_type = 0; int mutt_parse_hook(struct Buffer *buf, struct Buffer *s, unsigned long data,