[common] remove all casts around malloc

This commit is contained in:
Quantum
2021-08-15 18:56:30 -04:00
committed by Geoffrey McRae
parent 81c38e825c
commit 2de9e3e9be
7 changed files with 8 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ bool option_register(struct Option options[])
for(int i = 0; options[i].type != OPTION_TYPE_NONE; ++i)
{
state.options[state.oCount + i] = (struct Option *)malloc(sizeof(**state.options));
state.options[state.oCount + i] = malloc(sizeof(**state.options));
struct Option * o = state.options[state.oCount + i];
memcpy(o, &options[i], sizeof(*o));