X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c226346a22e1773c3dd823f2843a599de5576434..320dd2ebba27932ac6cbec8b51dd50cc169a61f4:/testsuite/msg/msg_test.c diff --git a/testsuite/msg/msg_test.c b/testsuite/msg/msg_test.c index 06adbb9ecf..040474e603 100644 --- a/testsuite/msg/msg_test.c +++ b/testsuite/msg/msg_test.c @@ -56,7 +56,7 @@ int master(int argc, char *argv[]) { /* 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); @@ -182,7 +182,7 @@ void test_all(const char *platform_file,const char *application_file) 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[])