Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
getting rid of deprecated functions
[simgrid.git] / examples / msg / msg_test.c
index c4ea92b..388e087 100644 (file)
@@ -93,6 +93,9 @@ int master(int argc, char *argv[])
     INFO2("Sending \"%s\" to \"%s\"",
                   todo[i]->name,
                   slaves[i % slaves_count]->name);
+    if(MSG_host_self()==slaves[i % slaves_count]) {
+      INFO0("Hey ! It's me ! :)");
+    }
     MSG_task_put(todo[i], slaves[i % slaves_count],
                  PORT_22);
     INFO0("Send completed");
@@ -198,7 +201,7 @@ void test_all(const char *platform_file,const char *application_file)
 /** Main function */
 int main(int argc, char *argv[])
 {
-  MSG_global_init_args(&argc,argv);
+  MSG_global_init(&argc,argv);
   if (argc < 3) {
      printf ("Usage: %s platform_file deployment_file\n",argv[0]);
      printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);