Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bypass MSG in the java bindings
[simgrid.git] / src / msg / msg_gos.cpp
index ba4b478..9e56db8 100644 (file)
@@ -623,10 +623,8 @@ msg_error_t MSG_comm_wait(msg_comm_t comm, double timeout)
 */
 void MSG_comm_waitall(msg_comm_t * comm, int nb_elem, double timeout)
 {
-  int i = 0;
-  for (i = 0; i < nb_elem; i++) {
+  for (int i = 0; i < nb_elem; i++)
     MSG_comm_wait(comm[i], timeout);
-  }
 }
 
 /** \ingroup msg_task_usage