Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove debug stuff added by mistake...
[simgrid.git] / teshsuite / smpi / pt2pt-pingpong / pt2pt-pingpong.c
index 6ddb623..dcaf7e6 100644 (file)
 #include <mpi.h>
 
 static void test_opts(int* argc, char **argv[]){
-  int found = 0, ret;
+  int found = 0;
+  int ret;
   while ((ret = getopt(*argc, *argv, "s")) >= 0)
   {
-    switch (ret) {
-    case 's':
+    if (ret == 's')
       found = 1;
-      break;
-    }
   }
   if (found!=1){
     printf("(smpi_)getopt failed ! \n");
@@ -32,7 +30,6 @@ int main(int argc, char *argv[])
   int rank;
   int msg = 99;
   MPI_Status status;
-
   int err = MPI_Init(&argc, &argv); /* Initialize MPI */
 
   /* test getopt function */