浏览代码

minor fixes

Nathalie Furmento 8 年之前
父节点
当前提交
89ec58cb54
共有 2 个文件被更改,包括 2 次插入1 次删除
  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)
 	return mkdtemp(tmpl);
 #else
-	return _starpu_mkdtemp_internal(tmp);
+	return _starpu_mkdtemp_internal(tmpl);
 #endif
 }
 

+ 1 - 0
tests/main/mkdtemp.c

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