Skip to content

Commit

Permalink
Merge pull request teeworlds#3257 from ChillerDragon/pr_c99_result
Browse files Browse the repository at this point in the history
Fix system.c mixing declarations breaking macOS pipeline
  • Loading branch information
oy authored Jul 27, 2024
2 parents 1acd30e + 88f1b7d commit 5b30ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,10 +1064,11 @@ void sphore_init(SEMAPHORE *sem)

void sphore_wait(SEMAPHORE *sem)
{
int result = 0;

lock_wait((*sem)->c_lock);

(*sem)->waiters++;
int result = 0;
while((*sem)->count == 0)
result = pthread_cond_wait(&(*sem)->c_nzcond, (LOCKINTERNAL *)(*sem)->c_lock);

Expand Down

0 comments on commit 5b30ead

Please sign in to comment.