Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Accept one peer (described as hostname:port) per argument
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 19 May 2006 10:19:56 +0000 (10:19 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 19 May 2006 10:19:56 +0000 (10:19 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2251 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/all2all/all2all.c

index fadca1c..d194b62 100644 (file)
@@ -92,8 +92,8 @@ int sender (int argc,char *argv[]) {
   gras_init(&argc,argv);
  
   /* Get the node location from argc/argv */
   gras_init(&argc,argv);
  
   /* Get the node location from argc/argv */
-  for (i=2; i<argc; i++){
-    xbt_host_t host = xbt_host_new(argv[i],atoi(argv[1]));
+  for (i=1; i<argc; i++){
+    xbt_host_t host = xbt_host_from_string(argv[i]);
     xbt_dynar_push(hosts,&host);
   }
 
     xbt_dynar_push(hosts,&host);
   }