]> jfr.im git - solanum.git/blobdiff - extensions/m_webirc.c
hook_fn casts were hiding UB (#265)
[solanum.git] / extensions / m_webirc.c
index f169435d77a07f695e9095ea02ac2124e3407d4c..d0b648c3ae66579448636e0c862e2d790e1d5f0b 100644 (file)
@@ -67,7 +67,7 @@ mapi_clist_av1 webirc_clist[] = { &webirc_msgtab, NULL };
 static void new_local_user(void *data);
 mapi_hfn_list_av1 webirc_hfnlist[] = {
        /* unintuitive but correct--we want to be called first */
-       { "new_local_user", (hookfn) new_local_user, HOOK_LOWEST },
+       { "new_local_user", new_local_user, HOOK_LOWEST },
        { NULL, NULL }
 };