Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
minor change : these initialisations were performed twice. I left the
[simgrid.git] / examples / msg / msg_test.c
index 451dc02..826a9ef 100644 (file)
@@ -129,8 +129,8 @@ int slave(int argc, char *argv[])
 int forwarder(int argc, char *argv[])
 {
   int i;
-  int slaves_count = argc - 1;
-  m_host_t *slaves = calloc(slaves_count, sizeof(m_host_t));
+  int slaves_count;
+  m_host_t *slaves;
 
   {                  /* Process organisation */
     slaves_count = argc - 1;