Skip to content

Commit

Permalink
Sys: Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswenzz committed Jan 23, 2023
1 parent ecf839a commit e3c196f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void GScr_CriticalSection()
sections.list = !sections.list
? (critical_section*)malloc(sizeof(critical_section))
: (critical_section*)realloc(sections.list, (sections.length + 1) * sizeof(critical_section));

critical_section* section = &sections.list[sections.length++];
strcpy(section->id, name);
section->locked = qfalse;
Expand Down Expand Up @@ -99,7 +99,7 @@ void GScr_EnterCriticalSection()
}
if (!section)
{
Plugin_Scr_Error(fmt("MutexAcquire(): section %s not found.", name));
Plugin_Scr_Error(fmt("EnterCriticalSection(): section %s not found.", name));
return;
}
if (!section->locked)
Expand Down Expand Up @@ -136,7 +136,7 @@ void GScr_LeaveCriticalSection()

void GScr_AsyncStatus()
{
CHECK_PARAMS(1, "Usage: Async_Status(<request>)");
CHECK_PARAMS(1, "Usage: AsyncStatus(<request>)");

async_worker** worker = (async_worker**)Plugin_Scr_GetInt(0);
if (!worker || !(*worker))
Expand Down

0 comments on commit e3c196f

Please sign in to comment.