From ab9929a50965863c0a8dea275cdf1da3aadbb68c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 29 Feb 2012 10:16:27 +0100 Subject: [PATCH] Really get the first host (fixes failing test). --- examples/msg/parallel_task/parallel_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/msg/parallel_task/parallel_task.c b/examples/msg/parallel_task/parallel_task.c index e6ac43a8c9..11f7251e39 100644 --- a/examples/msg/parallel_task/parallel_task.c +++ b/examples/msg/parallel_task/parallel_task.c @@ -71,7 +71,7 @@ MSG_error_t test_all(const char *platform_file) MSG_create_environment(platform_file); all_hosts = MSG_hosts_as_dynar(); - first_host = xbt_dynar_pop_as(all_hosts,m_host_t); + first_host = xbt_dynar_getfirst_as(all_hosts,m_host_t); MSG_process_create("test", test, NULL, first_host); res = MSG_main(); xbt_dynar_free(&all_hosts); -- 2.20.1