Core: Fix warnings

This commit is contained in:
Vicki Pfau 2024-06-01 00:07:19 -07:00
parent b7729c9e80
commit 56023cfd02
1 changed files with 2 additions and 2 deletions

View File

@ -459,11 +459,11 @@ static THREAD_ENTRY _mCoreThreadRun(void* context) {
} }
logger->filter = NULL; logger->filter = NULL;
return 0; THREAD_EXIT(0);
} }
bool mCoreThreadStart(struct mCoreThread* threadContext) { bool mCoreThreadStart(struct mCoreThread* threadContext) {
threadContext->impl = calloc(sizeof(*threadContext->impl), 1); threadContext->impl = calloc(1, sizeof(*threadContext->impl));
threadContext->impl->state = mTHREAD_INITIALIZED; threadContext->impl->state = mTHREAD_INITIALIZED;
threadContext->impl->requested = 0; threadContext->impl->requested = 0;
threadContext->logger.p = threadContext; threadContext->logger.p = threadContext;