Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check that table[0].name is defined.
[simgrid.git] / examples / msg / masterslave / masterslave_arg.c
index 002ecccc0ce1a59a65f3fb18710d3e8a24b2259a..7bf9f87e2554cfa4225556a10165d38a0bf03d3d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -92,7 +92,7 @@ int slave(int argc, char *argv[])
 /** Main function */
 int main(int argc, char *argv[])
 {
-  MSG_error_t res = MSG_OK;
+  msg_error_t res = MSG_OK;
   long i;
 
   MSG_init(&argc, argv);
@@ -138,8 +138,6 @@ int main(int argc, char *argv[])
 
   XBT_INFO("Simulation time %g", MSG_get_clock());
 
-  MSG_clean();
-
   if (res == MSG_OK)
     return 0;
   else