diff --git a/libs/ruamoko/rua_cmd.c b/libs/ruamoko/rua_cmd.c index 22dc43a55..8b971fe9a 100644 --- a/libs/ruamoko/rua_cmd.c +++ b/libs/ruamoko/rua_cmd.c @@ -78,7 +78,7 @@ bi_cmd_free (void *_c, void *unused) } static void -bi_cmd_f (void *pr) +bi_cmd_f (void) { bi_cmd_t *cmd = Hash_Find (bi_cmds, Cmd_Argv (0)); @@ -95,7 +95,7 @@ bi_Cmd_AddCommand (progs_t *pr) char *name = strdup (P_GSTRING (pr, 0)); func_t func = P_FUNCTION (pr, 1); - if (!cmd || !name || !Cmd_AddCommand (name, (void(*)(void))bi_cmd_f, "CSQC command")) { + if (!cmd || !name || !Cmd_AddCommand (name, bi_cmd_f, "CSQC command")) { if (name) free (name); if (cmd)