Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branches 'mc'
[simgrid.git] / teshsuite / smpi / mpich3-test / datatype / unusual-noncontigs.c
index 5c608f8..5844207 100644 (file)
@@ -18,7 +18,6 @@
 */
 static int verbose = 1;
 
-int main(int argc, char *argv[]);
 int parse_args(int argc, char **argv);
 int struct_negdisp_test(void);
 int vector_negstride_test(void);
@@ -535,7 +534,7 @@ static int pack_and_check_expected(MPI_Datatype type, const char *name,
     err = MPI_Pack_size(type_size/sizeof(int), MPI_INT, MPI_COMM_SELF, &pack_size);
     check_err(MPI_Pack_size);
     pack_buf = malloc(pack_size);
-    assert(pack_buf);
+    assert(pack_buf!=NULL);
 
     pos = 0;
     err = MPI_Pack(&sendbuf[0], type_size/sizeof(int), MPI_INT, pack_buf, pack_size, &pos, MPI_COMM_SELF);