X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4b2b01eff3a1b860aed60642848a6e1000011c22..107362afcf731adb1b3ee9c8ab103c7cd1c7d57e:/teshsuite/smpi/mpich3-test/util/mtest.c diff --git a/teshsuite/smpi/mpich3-test/util/mtest.c b/teshsuite/smpi/mpich3-test/util/mtest.c index e75d17b94f..a13d88c840 100644 --- a/teshsuite/smpi/mpich3-test/util/mtest.c +++ b/teshsuite/smpi/mpich3-test/util/mtest.c @@ -242,7 +242,7 @@ int MTestReturnValue( int errors ) * from the tests. * MTestSleep( seconds ) */ -#ifdef HAVE_WINDOWS_H +#ifdef _WIN32 #include void MTestSleep( int sec ) { @@ -546,14 +546,13 @@ static void *MTestTypeIndexedInitRecv( MTestDatatype *mtype ) static void *MTestTypeIndexedFree( MTestDatatype *mtype ) { - if (mtype->buf) { - free( mtype->buf ); + if (mtype->buf) + free( mtype->buf ); free( mtype->displs ); free( mtype->index ); mtype->buf = 0; mtype->displs = 0; mtype->index = 0; - } return 0; }