X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b830103bb89748d30c84ff7a0e88ca821d2d78b7..fbcf6ab31cae1988be858f9f894dafe529c575d7:/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c diff --git a/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c index 84217e9ea9..0a76bed2fb 100644 --- a/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c +++ b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c @@ -13,15 +13,13 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test"); static void test_opts(int* argc, char **argv[]){ int found = 0; - int ret; int option_index = 0; static struct option long_options[] = { - {"long", no_argument, 0, 0 }, + {(char*)"long", no_argument, 0, 0 }, {0, 0, 0, 0 } }; while (1) { - ret = getopt_long(*argc, *argv, "s", - long_options, &option_index); + int ret = getopt_long(*argc, *argv, "s", long_options, &option_index); if(ret==-1) break;