From 986a1bd34e7af58c22da5f133bbf787e9a034b8d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 28 Oct 2016 18:58:23 +0200 Subject: [PATCH] fix another example --- examples/msg/io-storage/io-storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/msg/io-storage/io-storage.c b/examples/msg/io-storage/io-storage.c index 6792f1d816..e63f69a902 100644 --- a/examples/msg/io-storage/io-storage.c +++ b/examples/msg/io-storage/io-storage.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) MSG_create_environment(argv[1]); MSG_function_register("host", host); xbt_dynar_t hosts = MSG_hosts_as_dynar(); - MSG_process_create(NULL, host, NULL, xbt_dynar_get_as(hosts,0,msg_host_t) ); + MSG_process_create(NULL, host, NULL, xbt_dynar_get_as(hosts, 3, msg_host_t)); xbt_dynar_free(&hosts); msg_error_t res = MSG_main(); -- 2.20.1