Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Updating the documentation and uploading to gforge.
[simgrid.git] / testsuite / msg / msg_test.c
index 06adbb9..040474e 100644 (file)
@@ -56,7 +56,7 @@ int master(int argc, char *argv[])
   {                  /*  Task creation */
     char sprintf_buffer[64];
 
   {                  /*  Task creation */
     char sprintf_buffer[64];
 
-    todo = calloc(number_of_tasks, sizeof(m_task_t));
+    todo = xbt_new0(m_task_t,number_of_tasks);
 
     for (i = 0; i < number_of_tasks; i++) {
       sprintf(sprintf_buffer, "Task_%d", i);
 
     for (i = 0; i < number_of_tasks; i++) {
       sprintf(sprintf_buffer, "Task_%d", i);
@@ -182,7 +182,7 @@ void test_all(const char *platform_file,const char *application_file)
     MSG_launch_application(application_file);
   }
   MSG_main();
     MSG_launch_application(application_file);
   }
   MSG_main();
-  printf("Simulation time %Lg\n",MSG_getClock());
+  printf("Simulation time %g\n",MSG_getClock());
 }
 
 int main(int argc, char *argv[])
 }
 
 int main(int argc, char *argv[])