Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
minor change : these initialisations were performed twice. I left the
authordutot <dutot@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Feb 2006 10:25:03 +0000 (10:25 +0000)
committerdutot <dutot@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Feb 2006 10:25:03 +0000 (10:25 +0000)
second initialisations to be consistent with the other functions of the
same file.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1909 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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 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;
 
   {                  /* Process organisation */
     slaves_count = argc - 1;