Loading...
stdio/FreeBSD/tmpnam.c Libc-1725.40.4 Libc-825.26
--- Libc/Libc-1725.40.4/stdio/FreeBSD/tmpnam.c
+++ Libc/Libc-825.26/stdio/FreeBSD/tmpnam.c
@@ -43,8 +43,6 @@
 #include <pthread.h>
 #include <stdlib.h>
 
-#include "libc_hooks_impl.h"
-
 __warn_references(tmpnam,
     "warning: tmpnam() possibly used unsafely; consider using mkstemp()");
 
@@ -59,7 +57,8 @@
 }
 
 char *
-tmpnam(char *s)
+tmpnam(s)
+	char *s;
 {
 	static u_long tmpcount;
 
@@ -70,9 +69,6 @@
 		}
 		s = tmpnam_buf;
 	}
-
-	libc_hooks_will_write(s, L_tmpnam);
-
 	(void)snprintf(s, L_tmpnam, "%stmp.%lu.XXXXXX", P_tmpdir, tmpcount);
 	++tmpcount;
 	return (_mktemp(s));