Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiler warning.
  • Loading branch information
icculus committed Oct 1, 2013
1 parent 41226f1 commit 8d2863d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nph-offload.c
Expand Up @@ -248,12 +248,10 @@ static void *createSemaphore(const int initialVal)
{
void *retval = NULL;
const int value = initialVal ? 0 : 1;
int created = 1;

retval = sem_open("SEM-" SHM_NAME, O_CREAT | O_EXCL, 0600, value);
if ((retval == (void *) SEM_FAILED) && (errno == EEXIST))
{
created = 0;
debugEcho("(semaphore already exists, just opening existing one.)");
retval = sem_open("SEM-" SHM_NAME, 0);
} // if
Expand Down

0 comments on commit 8d2863d

Please sign in to comment.