From 0fcd03339b78e791a2a3f3b045565162cda86dd4 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 25 Jul 2017 19:58:18 +0000 Subject: [PATCH] More idiomatic definition of HookHead Issue #374 --- hook.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, -- 2.40.0