From: cherierm Date: Mon, 22 Oct 2007 08:54:16 +0000 (+0000) Subject: Directly returns the newly created condition. X-Git-Tag: v3.3~961 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3fb99dcbb25446247ba821cb4cb038d14167ef7b Directly returns the newly created condition. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4839 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_rl_synchro.c b/src/xbt/xbt_rl_synchro.c index ad230a7486..abd6e96394 100644 --- a/src/xbt/xbt_rl_synchro.c +++ b/src/xbt/xbt_rl_synchro.c @@ -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) {