Browse Source

minor fixes

Nathalie Furmento 8 years ago
parent
commit
89ec58cb54
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/common/utils.c
  2. 1 0
      tests/main/mkdtemp.c

+ 1 - 1
src/common/utils.c

@@ -183,7 +183,7 @@ char *_starpu_mkdtemp(char *tmpl)
 #if defined(HAVE_MKDTEMP)
 #if defined(HAVE_MKDTEMP)
 	return mkdtemp(tmpl);
 	return mkdtemp(tmpl);
 #else
 #else
-	return _starpu_mkdtemp_internal(tmp);
+	return _starpu_mkdtemp_internal(tmpl);
 #endif
 #endif
 }
 }
 
 

+ 1 - 0
tests/main/mkdtemp.c

@@ -18,6 +18,7 @@
 #include <common/config.h>
 #include <common/config.h>
 #include <common/utils.h>
 #include <common/utils.h>
 #include "../helper.h"
 #include "../helper.h"
+#include <unistd.h>
 
 
 int do_test(char *(*func)(char *tmpl))
 int do_test(char *(*func)(char *tmpl))
 {
 {