Loading...
stdio/FreeBSD/fgets.c Libc-1725.40.4 Libc-763.13
--- Libc/Libc-1725.40.4/stdio/FreeBSD/fgets.c
+++ Libc/Libc-763.13/stdio/FreeBSD/fgets.c
@@ -42,7 +42,6 @@
 #include "un-namespace.h"
 #include "local.h"
 #include "libc_private.h"
-#include "libc_hooks_impl.h"
 
 /*
  * Read at most n-1 characters from the given file.
@@ -50,7 +49,10 @@
  * Return first argument, or NULL if no characters were read.
  */
 char *
-fgets(char *buf, int n, FILE *fp)
+fgets(buf, n, fp)
+	char *buf;
+	int n;
+	FILE *fp;
 {
 	size_t len;
 	char *s;
@@ -58,9 +60,6 @@
 
 	if (n <= 0)		/* sanity check */
 		return (NULL);
-
-	libc_hooks_will_write(buf, n);
-	libc_hooks_will_write(fp, sizeof(*fp));
 
 	FLOCKFILE(fp);
 	ORIENT(fp, -1);