Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let's also be brutal with what seems to be a typo from Malek [Mt]
[simgrid.git] / src / xbt / xbt_os_thread.c
index a6a2286..efc534d 100644 (file)
@@ -491,7 +491,7 @@ void xbt_os_sem_timedacquire(xbt_os_sem_t sem,double timeout)
                if(sem_trywait(sem->s) < 0)
                        THROW2(system_error,errno,"sem_trywait(%p) failed: %s",sem,strerror(errno));
                #else
-               if(sem_trywait(&(sem->s)) < 0)
+               if(sem_trywait(sem->s) < 0)
                        THROW2(system_error,errno,"sem_trywait(%p) failed: %s",sem,strerror(errno));
                #endif          
        }