diff --git a/tests/tests.cpp b/tests/tests.cpp index 21191675..fde3053f 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -307,9 +307,9 @@ static void test_rmdir() { - int fd; + int root_fd; - fd = openat(AT_FDCWD,"/mnt/tmp",O_DIRECTORY,0777); + root_fd = openat(AT_FDCWD,"/mnt/tmp",O_DIRECTORY,0777); close(fd);