X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf482439821f2e52d3a573c4abe8763be830800a..ce2c1e5bd59b2d28d3361a0f2d31b6ce309a0595:/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c diff --git a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c index 6ddb623680..dcaf7e6131 100644 --- a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c +++ b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c @@ -10,14 +10,12 @@ #include 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 */