mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[common] remove all casts around malloc
This commit is contained in:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user