chiark / gitweb /
site: Rename site_phase_hook to site_phase_shutdown_hook
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 15:06:00 +0000 (15:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 15:17:33 +0000 (15:17 +0000)
This is misnamed.  And we are going to add yet another phase hook.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site.c

diff --git a/site.c b/site.c
index a0715000285f5f65e4dd7a617726f2dcfe79922b..358f4068e48f365196c8aef143ad0169129f3c44 100644 (file)
--- 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);