X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5a97de8c98502af9f74cfceb924fa02e0fd80925..a9c9083479c7a98cb890faad9d2f40e9a64ccd83:/teshsuite/smpi/mpich3-test/info/infodup.c diff --git a/teshsuite/smpi/mpich3-test/info/infodup.c b/teshsuite/smpi/mpich3-test/info/infodup.c index b89d020c48..4c79749d22 100644 --- a/teshsuite/smpi/mpich3-test/info/infodup.c +++ b/teshsuite/smpi/mpich3-test/info/infodup.c @@ -13,7 +13,7 @@ #include #endif -int main( int argc, char *argv[] ) +int main(int argc, char *argv[]) { int errs = 0; MPI_Info info1, infodup; @@ -21,62 +21,61 @@ int main( int argc, char *argv[] ) char key[MPI_MAX_INFO_KEY], keydup[MPI_MAX_INFO_KEY]; char value[MPI_MAX_INFO_VAL], valdup[MPI_MAX_INFO_VAL]; - MTest_Init( &argc, &argv ); + MTest_Init(&argc, &argv); - MPI_Info_create( &info1 ); + MPI_Info_create(&info1); /* Use only named keys incase the info implementation only supports - the predefined keys (e.g., IBM) */ - MPI_Info_set( info1, (char*)"host", (char*)"myhost.myorg.org" ); - MPI_Info_set( info1, (char*)"file", (char*)"runfile.txt" ); - MPI_Info_set( info1, (char*)"soft", (char*)"2:1000:4,3:1000:7" ); + * the predefined keys (e.g., IBM) */ + MPI_Info_set(info1, (char *) "host", (char *) "myhost.myorg.org"); + MPI_Info_set(info1, (char *) "file", (char *) "runfile.txt"); + MPI_Info_set(info1, (char *) "soft", (char *) "2:1000:4,3:1000:7"); - MPI_Info_dup( info1, &infodup ); + MPI_Info_dup(info1, &infodup); - MPI_Info_get_nkeys( infodup, &nkeysdup ); - MPI_Info_get_nkeys( info1, &nkeys ); + MPI_Info_get_nkeys(infodup, &nkeysdup); + MPI_Info_get_nkeys(info1, &nkeys); if (nkeys != nkeysdup) { - errs++; - printf( "Dup'ed info has a different number of keys; is %d should be %d\n", - nkeysdup, nkeys ); + errs++; + printf("Dup'ed info has a different number of keys; is %d should be %d\n", nkeysdup, nkeys); } vallen = MPI_MAX_INFO_VAL; - for (i=0; i