mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-11-27 03:38:22 +00:00
[common] remove all casts around malloc
This commit is contained in:
@@ -39,7 +39,7 @@ struct LGEvent
|
||||
|
||||
LGEvent * lgCreateEvent(bool autoReset, unsigned int msSpinTime)
|
||||
{
|
||||
LGEvent * handle = (LGEvent *)calloc(1, sizeof(*handle));
|
||||
LGEvent * handle = calloc(1, sizeof(*handle));
|
||||
if (!handle)
|
||||
{
|
||||
DEBUG_ERROR("Failed to allocate memory");
|
||||
|
||||
Reference in New Issue
Block a user