[host] remove all casts around malloc

This commit is contained in:
Quantum
2021-08-15 18:56:42 -04:00
committed by Geoffrey McRae
parent 2de9e3e9be
commit 4ecf749f7e
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ static const char * xcb_getName(void)
static bool xcb_create(CaptureGetPointerBuffer getPointerBufferFn, CapturePostPointerBuffer postPointerBufferFn)
{
DEBUG_ASSERT(!this);
this = (struct xcb *)calloc(1, sizeof(*this));
this = calloc(1, sizeof(*this));
this->shmID = -1;
this->data = (void *)-1;
this->frameEvent = lgCreateEvent(true, 20);