]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest_override.h
failtest: fix locking code.
[ccan] / ccan / failtest / failtest_override.h
index d5be2829d5e0dd418ae35eb4dd7b2f26543cccf7..a97d4e1723654fc5c5efa8e3b15491446a3e1c7e 100644 (file)
@@ -52,7 +52,7 @@
        failtest_pwrite((fd), (buf), (count), (off), __FILE__, __LINE__)
 
 #undef close
-#define close(fd) failtest_close(fd)
+#define close(fd) failtest_close(fd, __FILE__, __LINE__)
 
 #undef fcntl
 #define fcntl(fd, ...) failtest_fcntl((fd), __FILE__, __LINE__, __VA_ARGS__)