X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae8140f19db6cb86f753e32499eab49190846d1f..9932a0c0d2c44e34633c97a827b2b04d615cb4e9:/examples/msg/token_ring/ring_call.c diff --git a/examples/msg/token_ring/ring_call.c b/examples/msg/token_ring/ring_call.c index 3de124d020..dd69d862cb 100644 --- a/examples/msg/token_ring/ring_call.c +++ b/examples/msg/token_ring/ring_call.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2008-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ #include #include -#include "msg/msg.h" +#include "simgrid/msg.h" #include "surf/surf_private.h" int host(int argc, char *argv[]); @@ -32,7 +32,7 @@ int host(int argc, char *argv[]) { int host_number = atoi(MSG_process_get_name(MSG_process_self())); char mailbox[256]; - m_task_t task = NULL; + msg_task_t task = NULL; _XBT_GNUC_UNUSED int res; if (host_number == 0){ //master send then receive sprintf(mailbox, "%d", host_number+1); @@ -63,7 +63,7 @@ int host(int argc, char *argv[]) int main(int argc, char **argv) { int i,res; - MSG_global_init(&argc, argv); + MSG_init(&argc, argv); MSG_create_environment(argv[1]); xbt_dynar_t hosts = MSG_hosts_as_dynar(); nb_hosts = xbt_dynar_length(hosts); @@ -73,14 +73,13 @@ int main(int argc, char **argv) for(i = 0 ; i