X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a97de8c98502af9f74cfceb924fa02e0fd80925..950602c8893830a749ada1c7e1eb5a48b80b6c34:/teshsuite/smpi/mpich3-test/info/infoorder.c diff --git a/teshsuite/smpi/mpich3-test/info/infoorder.c b/teshsuite/smpi/mpich3-test/info/infoorder.c index aa1db8c35b..e1189c46a2 100644 --- a/teshsuite/smpi/mpich3-test/info/infoorder.c +++ b/teshsuite/smpi/mpich3-test/info/infoorder.c @@ -14,153 +14,154 @@ #endif #define NKEYS 3 -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; MPI_Info info; - char *keys1[NKEYS] = { (char*)"file", (char*)"soft", (char*)"host" }; - char *values1[NKEYS] = { (char*)"runfile.txt", (char*)"2:1000:4,3:1000:7", - (char*)"myhost.myorg.org" }; + char *keys1[NKEYS] = { (char *) "file", (char *) "soft", (char *) "host" }; + char *values1[NKEYS] = { (char *) "runfile.txt", (char *) "2:1000:4,3:1000:7", + (char *) "myhost.myorg.org" + }; char value[MPI_MAX_INFO_VAL]; int i, flag; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); /* 1,2,3 */ - MPI_Info_create( &info ); + MPI_Info_create(&info); /* Use only named keys incase the info implementation only supports - the predefined keys (e.g., IBM) */ - for (i=0; i=0; i--) { - MPI_Info_set( info, keys1[i], values1[i] ); + * the predefined keys (e.g., IBM) */ + for (i = NKEYS - 1; i >= 0; i--) { + MPI_Info_set(info, keys1[i], values1[i]); } /* Check that all values are present */ - for (i=0; i