X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b46cc49382cda87e0ee724f97277bd143566985e..7a99910faad9adbbc01f4e4cccb504a53bed1af6:/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 468bcc6211..c46ea3395b 100644 --- a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c +++ b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c @@ -10,20 +10,16 @@ #include static void test_opts(int* argc, char **argv[]){ -#if defined __linux__ - 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"); } -#endif } int main(int argc, char *argv[])