Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove extraneous parentheses
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 16 Jun 2015 08:27:36 +0000 (10:27 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 16 Jun 2015 08:52:09 +0000 (10:52 +0200)
clang is not happy.

src/xbt/xbt_os_thread.c

index 2059f2c..7be5fb3 100644 (file)
@@ -571,7 +571,7 @@ xbt_os_sem_t xbt_os_sem_init(unsigned int value)
     res->name[13] = '\0';
     res->ps = sem_open(res->name, O_CREAT, 0644, value);
   }
     res->name[13] = '\0';
     res->ps = sem_open(res->name, O_CREAT, 0644, value);
   }
-  if ((res->ps == (sem_t *) SEM_FAILED))
+  if (res->ps == (sem_t *) SEM_FAILED)
     THROWF(system_error, errno, "sem_open() failed: %s", strerror(errno));
 
   /* Remove the name from the semaphore namespace: we never join on it */
     THROWF(system_error, errno, "sem_open() failed: %s", strerror(errno));
 
   /* Remove the name from the semaphore namespace: we never join on it */