]> jfr.im git - solanum.git/blobdiff - extensions/sno_globaloper.c
hook_fn casts were hiding UB (#265)
[solanum.git] / extensions / sno_globaloper.c
index ea5476c29bd0d9fe1e5b915730d14949437af153..5df90d6772a103c9ac0b62373122b3f8d310fdd0 100644 (file)
@@ -17,7 +17,7 @@ static const char sno_desc[] =
 static void h_sgo_umode_changed(void *);
 
 mapi_hfn_list_av1 sgo_hfnlist[] = {
-       { "umode_changed", (hookfn) h_sgo_umode_changed },
+       { "umode_changed", h_sgo_umode_changed },
        { NULL, NULL }
 };