X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1797da7d294b83c915fe49dad633855985eccb64..2bb3a0d042a8a1deb91c18dba0cbdf42237413d4:/teshsuite/smpi/mpich3-test/info/infoenv.c diff --git a/teshsuite/smpi/mpich3-test/info/infoenv.c b/teshsuite/smpi/mpich3-test/info/infoenv.c index 5b0fa1c31e..08da1d16f1 100644 --- a/teshsuite/smpi/mpich3-test/info/infoenv.c +++ b/teshsuite/smpi/mpich3-test/info/infoenv.c @@ -12,7 +12,7 @@ static int verbose = 0; int main(int argc, char *argv[]) { char value[MPI_MAX_INFO_VAL]; - char *keys[] = { "command", "argv", "maxprocs", "soft", "host", "arch", "wdir", "file", + const char *keys[] = { "command", "argv", "maxprocs", "soft", "host", "arch", "wdir", "file", "thread_level", 0 }; int flag, i; @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) MPI_Init(NULL, NULL); for (i = 0; keys[i]; i++) { - MPI_Info_get(MPI_INFO_ENV, keys[i], MPI_MAX_INFO_VAL, value, &flag); + MPI_Info_get(MPI_INFO_ENV, (char*)keys[i], MPI_MAX_INFO_VAL, value, &flag); if (flag && verbose) printf("command: %s\n", value); }