소스 검색

minor fixes

Nathalie Furmento 10 년 전
부모
커밋
b8a32f9b4c
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      mpi/examples/complex/mpi_complex.c
  2. 1 1
      mpi/tests/mpi_earlyrecv2.c

+ 3 - 3
mpi/examples/complex/mpi_complex.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2012, 2013, 2015  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -36,8 +36,8 @@ struct starpu_codelet foo_display =
 int main(int argc, char **argv)
 {
 	int rank, nodes;
-	int ret;
-	int compare;
+	int ret=0;
+	int compare=0;
 
 	ret = starpu_init(NULL);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");

+ 1 - 1
mpi/tests/mpi_earlyrecv2.c

@@ -244,5 +244,5 @@ int main(int argc, char **argv)
 
 	MPI_Finalize();
 
-	return ret;
+	return global_ret;
 }