[common] remove all casts around malloc
This commit is contained in:
1 parent
81c38e825c
commit
2de9e3e9be
7 files changed
+8
-8
No files matched your search
@@ -43,7 +43,7 @@ static void * threadWrapper(void * opaque)
|
||||
|
||||
bool lgCreateThread(const char * name, LGThreadFunction function, void * opaque, LGThread ** handle)
|
||||
{
|
||||
*handle = (LGThread*)malloc(sizeof(**handle));
|
||||
*handle = malloc(sizeof(**handle));
|
||||
(*handle)->name = name;
|
||||
(*handle)->function = function;
|
||||
(*handle)->opaque = opaque;
|
||||
|
||||
Reference in new issue
Block a user