Explorar o código

doc/doxygen/chapters/code/disk_copy.c: use setenv instead of putenv, this is more valgrind friendly

Nathalie Furmento %!s(int64=11) %!d(string=hai) anos
pai
achega
e8a8200fc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      doc/doxygen/chapters/code/disk_copy.c

+ 1 - 1
doc/doxygen/chapters/code/disk_copy.c

@@ -35,7 +35,7 @@ int main(int argc, char **argv)
 	double * A,*B,*C,*D,*E,*F;
 
 	/* limit main ram to force to push in disk */
-	putenv("STARPU_LIMIT_CPU_MEM=160");
+	setenv("STARPU_LIMIT_CPU_MEM", "160", 1);
 
 	/* Initialize StarPU with default configuration */
 	int ret = starpu_init(NULL);