remove a nasty cast

This is an imperfect revision of history.
This commit is contained in:
Bill Currie 2004-11-18 06:08:40 +00:00 committed by Jeff Teunissen
parent b71f12a616
commit a9200f5f8f

View file

@ -78,7 +78,7 @@ bi_cmd_free (void *_c, void *unused)
} }
static void static void
bi_cmd_f (void *pr) bi_cmd_f (void)
{ {
bi_cmd_t *cmd = Hash_Find (bi_cmds, Cmd_Argv (0)); 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)); char *name = strdup (P_GSTRING (pr, 0));
func_t func = P_FUNCTION (pr, 1); 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) if (name)
free (name); free (name);
if (cmd) if (cmd)