Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Directly returns the newly created condition.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 08:54:16 +0000 (08:54 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 08:54:16 +0000 (08:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4839 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/xbt_rl_synchro.c

index ad230a7..abd6e96 100644 (file)
@@ -132,7 +132,7 @@ typedef struct xbt_cond_ {
 xbt_cond_t xbt_cond_init(void) {
    xbt_cond_t res = (xbt_cond_t) xbt_os_cond_init();
    DEBUG1("Create cond %p", res);
-   return (xbt_cond_t) xbt_os_cond_init();
+   return res;
 }
 
 void xbt_cond_wait(xbt_cond_t cond, xbt_mutex_t mutex) {