From: coldpeace Date: Wed, 24 Mar 2010 17:26:03 +0000 (+0000) Subject: (allHost method :using MSG_get_host_number(/table) methods instead calling the globa... X-Git-Tag: SVN~379 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c8fa841f00c107e79cc314ad458c0c960ba33dbb (allHost method :using MSG_get_host_number(/table) methods instead calling the globals private variables of MSG git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7361 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/java/jmsg.c b/src/java/jmsg.c index 0d9ea2375c..6bf0a01ad1 100644 --- a/src/java/jmsg.c +++ b/src/java/jmsg.c @@ -912,8 +912,8 @@ Java_simgrid_msg_MsgNative_allHosts(JNIEnv * env, jclass cls_arg) jstring jname; m_host_t host; - int count = xbt_fifo_size(msg_global->host); - m_host_t *table = (m_host_t *) xbt_fifo_to_array(msg_global->host); + int count = MSG_get_host_number(); + m_host_t *table = MSG_get_host_table(); jclass cls = jxbt_get_class(env, "simgrid/msg/Host");