From 1c56b25a6e2054c0f0628e2f343f5a0df2a7772c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Feb 2020 15:06:00 +0000 Subject: [PATCH] site: Rename site_phase_hook to site_phase_shutdown_hook This is misnamed. And we are going to add yet another phase hook. Signed-off-by: Ian Jackson --- site.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site.c b/site.c index a071500..358f406 100644 --- a/site.c +++ b/site.c @@ -2289,7 +2289,7 @@ static void site_startup(void *vst) enter_state_run(st); } -static void site_phase_hook(void *sst, uint32_t newphase) +static void site_phase_shutdown_hook(void *sst, uint32_t newphase) { struct site *st=sst; @@ -2551,7 +2551,7 @@ static list_t *site_apply(closure_t *self, struct cloc loc, dict_t *context, enter_state_stop(st); - add_hook(PHASE_SHUTDOWN,site_phase_hook,st); + add_hook(PHASE_SHUTDOWN,site_phase_shutdown_hook,st); add_hook(PHASE_CHILDPERSIST,site_childpersist_clearkeys,st); return new_closure(&st->cl); -- 2.30.2