mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-28 15:12:36 +00:00
remove a nasty cast
This is an imperfect revision of history.
This commit is contained in:
parent
b71f12a616
commit
a9200f5f8f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue