From 3fb99dcbb25446247ba821cb4cb038d14167ef7b Mon Sep 17 00:00:00 2001 From: cherierm Date: Mon, 22 Oct 2007 08:54:16 +0000 Subject: [PATCH] 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 --- src/xbt/xbt_rl_synchro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1