mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] remove all casts around malloc
The cast is unnecessary in C and should be removed to avoid clutter.
This commit is contained in:
@@ -116,7 +116,7 @@ static bool egl_initDesktopShader(
|
||||
bool egl_desktopInit(EGL * egl, EGL_Desktop ** desktop_, EGLDisplay * display,
|
||||
bool useDMA, int maxRects)
|
||||
{
|
||||
EGL_Desktop * desktop = (EGL_Desktop *)calloc(1, sizeof(EGL_Desktop));
|
||||
EGL_Desktop * desktop = calloc(1, sizeof(EGL_Desktop));
|
||||
if (!desktop)
|
||||
{
|
||||
DEBUG_ERROR("Failed to malloc EGL_Desktop");
|
||||
|
Reference in New Issue
Block a user